Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'release/scripts/startup')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py20
1 files changed, 11 insertions, 9 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 83134ea393a..701c98ce489 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -124,11 +124,7 @@ class View3DPanel:
# Used by vertex & weight paint
def draw_vpaint_symmetry(layout, vpaint, mesh):
-
col = layout.column()
- col.use_property_split = True
- col.use_property_decorate = False
-
row = col.row(heading="Mirror", align=True)
row.prop(mesh, "use_mirror_x", text="X", toggle=True)
row.prop(mesh, "use_mirror_y", text="Y", toggle=True)
@@ -955,16 +951,18 @@ class VIEW3D_PT_tools_weightpaint_symmetry(Panel, View3DPaintPanel):
def draw(self, context):
layout = self.layout
+ layout.use_property_split = True
+ layout.use_property_decorate = False
+
tool_settings = context.tool_settings
wpaint = tool_settings.weight_paint
mesh = context.object.data
- draw_vpaint_symmetry(layout, wpaint, mesh)
- col = layout.column()
- row = col.row(align=True)
- row.prop(mesh, 'use_mirror_vertex_group_x')
+ draw_vpaint_symmetry(layout, wpaint, mesh)
- row = layout.row(align=True)
+ col = layout.column(align=True)
+ col.prop(mesh, 'use_mirror_vertex_group_x', text="Vertex Group X")
+ row = col.row()
row.active = mesh.use_mirror_vertex_group_x
row.prop(mesh, "use_mirror_topology")
@@ -1033,8 +1031,12 @@ class VIEW3D_PT_tools_vertexpaint_symmetry(Panel, View3DPaintPanel):
def draw(self, context):
layout = self.layout
+ layout.use_property_split = True
+ layout.use_property_decorate = False
+
tool_settings = context.tool_settings
vpaint = tool_settings.vertex_paint
+
draw_vpaint_symmetry(layout, vpaint, context.object.data)