Changeset View
Changeset View
Standalone View
Standalone View
release/scripts/startup/bl_ui/space_view3d_toolbar.py
| Show First 20 Lines • Show All 957 Lines • ▼ Show 20 Lines | def draw(self, context): | ||||
| tool_settings = context.tool_settings | tool_settings = context.tool_settings | ||||
| wpaint = tool_settings.weight_paint | wpaint = tool_settings.weight_paint | ||||
| draw_vpaint_symmetry(layout, wpaint, context.object.data) | draw_vpaint_symmetry(layout, wpaint, context.object.data) | ||||
| col = layout.column() | col = layout.column() | ||||
| row = col.row(align=True) | row = col.row(align=True) | ||||
| row.prop(context.object.data, 'use_mirror_vertex_group_x') | row.prop(context.object.data, 'use_mirror_vertex_group_x') | ||||
| row = layout.row(align=True) | |||||
| row.active = ob.data.use_mirror_vertex_group_x | |||||
| row.prop(mesh, "use_mirror_topology") | |||||
| class VIEW3D_PT_tools_weightpaint_symmetry_for_topbar(Panel): | class VIEW3D_PT_tools_weightpaint_symmetry_for_topbar(Panel): | ||||
| bl_space_type = 'TOPBAR' | bl_space_type = 'TOPBAR' | ||||
| bl_region_type = 'HEADER' | bl_region_type = 'HEADER' | ||||
| bl_label = "Symmetry" | bl_label = "Symmetry" | ||||
| draw = VIEW3D_PT_tools_weightpaint_symmetry.draw | draw = VIEW3D_PT_tools_weightpaint_symmetry.draw | ||||
| Show All 16 Lines | def draw(self, context): | ||||
| col = layout.column() | col = layout.column() | ||||
| col.prop(tool_settings, "use_auto_normalize", text="Auto Normalize") | col.prop(tool_settings, "use_auto_normalize", text="Auto Normalize") | ||||
| col.prop(tool_settings, "use_lock_relative", text="Lock-Relative") | col.prop(tool_settings, "use_lock_relative", text="Lock-Relative") | ||||
| col.prop(tool_settings, "use_multipaint", text="Multi-Paint") | col.prop(tool_settings, "use_multipaint", text="Multi-Paint") | ||||
| col.prop(wpaint, "use_group_restrict") | col.prop(wpaint, "use_group_restrict") | ||||
| obj = context.weight_paint_object | |||||
| if obj.type == 'MESH': | |||||
| mesh = obj.data | |||||
| col.prop(mesh, "use_mirror_x") | |||||
| row = col.row() | |||||
| row.active = mesh.use_mirror_x | |||||
| row.prop(mesh, "use_mirror_topology") | |||||
| # ********** default tools for vertex-paint **************** | # ********** default tools for vertex-paint **************** | ||||
| # TODO, move to space_view3d.py | # TODO, move to space_view3d.py | ||||
| class VIEW3D_PT_tools_vertexpaint_options(Panel, View3DPaintPanel): | class VIEW3D_PT_tools_vertexpaint_options(Panel, View3DPaintPanel): | ||||
| bl_context = ".vertexpaint" # dot on purpose (access from topbar) | bl_context = ".vertexpaint" # dot on purpose (access from topbar) | ||||
| bl_label = "Options" | bl_label = "Options" | ||||
| ▲ Show 20 Lines • Show All 1,247 Lines • Show Last 20 Lines | |||||