diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-12-08 15:25:02 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-12-08 15:27:00 +0300 |
commit | 9569425b027cdb1c80e407697971f42fbee42388 (patch) | |
tree | 8c67943b9ee8e2a2d325dd196d83192493919159 /release/scripts/startup/bl_ui/space_view3d_toolbar.py | |
parent | d82d19904b66a7ca2d0c181045a9a16d6504a54c (diff) |
Fix T72064, T72158: weight paint shows X/Y/Z symmetry options that don't work
Only X-mirror is supported still. While we should support all these in the
future, the UI should match the current supported functionality.
Ref T65872
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d_toolbar.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 718365ec99d..70904111b10 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -1471,32 +1471,6 @@ class VIEW3D_PT_tools_brush_display_custom_icon(Panel, View3DPaintPanel): # TODO, move to space_view3d.py -class VIEW3D_PT_tools_weightpaint_symmetry(Panel, View3DPaintPanel): - bl_context = ".weightpaint" - bl_options = {'DEFAULT_CLOSED'} - bl_label = "Symmetry" - - @classmethod - def poll(cls, context): - # When used in the tool header, this is explicitly included next to the XYZ symmetry buttons. - return (context.region.type != 'TOOL_HEADER') - - def draw(self, context): - layout = self.layout - tool_settings = context.tool_settings - wpaint = tool_settings.weight_paint - draw_vpaint_symmetry(layout, wpaint) - - -class VIEW3D_PT_tools_weightpaint_symmetry_for_topbar(Panel): - bl_space_type = 'TOPBAR' - bl_region_type = 'HEADER' - bl_label = "Symmetry" - - draw = VIEW3D_PT_tools_weightpaint_symmetry.draw - - -# TODO, move to space_view3d.py class VIEW3D_PT_tools_weightpaint_options(Panel, View3DPaintPanel): bl_context = ".weightpaint" bl_label = "Options" @@ -2282,8 +2256,6 @@ classes = ( VIEW3D_PT_sculpt_options, VIEW3D_PT_sculpt_options_unified, VIEW3D_PT_sculpt_options_gravity, - VIEW3D_PT_tools_weightpaint_symmetry, - VIEW3D_PT_tools_weightpaint_symmetry_for_topbar, VIEW3D_PT_tools_weightpaint_options, VIEW3D_PT_tools_weightpaint_options_unified, VIEW3D_PT_tools_vertexpaint_symmetry, |