diff options
author | William Reynish <billrey@me.com> | 2019-03-20 16:09:55 +0300 |
---|---|---|
committer | William Reynish <billrey@me.com> | 2019-03-20 16:09:55 +0300 |
commit | e4320e2ce0bbb05453b35b87ba97ddcefb182675 (patch) | |
tree | bb9da8ceac0526af9a448cc806bc876517ea526d /release/scripts | |
parent | daa4d4dd25877c3352d26c6ac89a4cc2e05c10fa (diff) |
UI: Consistent naming and ordering of paint Symmetry and Options panels
Diffstat (limited to 'release/scripts')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_paint_common.py | 10 | ||||
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 62 |
2 files changed, 46 insertions, 26 deletions
diff --git a/release/scripts/startup/bl_ui/properties_paint_common.py b/release/scripts/startup/bl_ui/properties_paint_common.py index 8271c948805..9ebcf137688 100644 --- a/release/scripts/startup/bl_ui/properties_paint_common.py +++ b/release/scripts/startup/bl_ui/properties_paint_common.py @@ -52,18 +52,18 @@ class UnifiedPaintPanel: flow = parent.grid_flow(row_major=True, columns=0, even_columns=True, even_rows=False, align=False) col = flow.column() - col.prop(ups, "use_unified_size", text="Unified Size") + col.prop(ups, "use_unified_size", text="Size") col = flow.column() - col.prop(ups, "use_unified_strength", text="Unified Strength") + col.prop(ups, "use_unified_strength", text="Strength") if context.weight_paint_object: col = flow.column() - col.prop(ups, "use_unified_weight", text="Unified Weight") + col.prop(ups, "use_unified_weight", text="Weight") elif context.vertex_paint_object or context.image_paint_object: col = flow.column() - col.prop(ups, "use_unified_color", text="Unified Color") + col.prop(ups, "use_unified_color", text="Color") else: col = flow.column() - col.prop(ups, "use_unified_color", text="Unified Color") + col.prop(ups, "use_unified_color", text="Color") @staticmethod def prop_unified_size(parent, context, brush, prop_name, *, icon='NONE', text=None, slider=False): diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 61965b1b9b6..6eee06aeb9b 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -91,7 +91,7 @@ def is_not_gpencil_edit_mode(context): class VIEW3D_PT_tools_meshedit_options(View3DPanel, Panel): bl_category = "Options" bl_context = ".mesh_edit" # dot on purpose (access from topbar) - bl_label = "Mesh Options" + bl_label = "Options" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -1167,7 +1167,7 @@ class VIEW3D_PT_sculpt_options_gravity(Panel, View3DPaintPanel): # TODO, move to space_view3d.py class VIEW3D_PT_sculpt_symmetry(Panel, View3DPaintPanel): bl_context = ".sculpt_mode" # dot on purpose (access from topbar) - bl_label = "Symmetry/Lock" + bl_label = "Symmetry" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -1309,6 +1309,9 @@ class VIEW3D_PT_tools_weightpaint_options(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 @@ -1323,13 +1326,25 @@ class VIEW3D_PT_tools_weightpaint_options(Panel, View3DPaintPanel): row.active = mesh.use_mirror_x row.prop(mesh, "use_mirror_topology") - self.unified_paint_settings(col, context) + +class VIEW3D_PT_tools_weightpaint_options_unified(Panel, View3DPaintPanel): + bl_context = ".weightpaint" + bl_label = "Unified Brush" + bl_parent_id = "VIEW3D_PT_tools_weightpaint_options" + + def draw(self, context): + layout = self.layout + + layout.use_property_split = True + layout.use_property_decorate = False + + self.unified_paint_settings(layout, context) # ********** default tools for vertex-paint **************** # TODO, move to space_view3d.py -class VIEW3D_PT_tools_vertexpaint(Panel, View3DPaintPanel): +class VIEW3D_PT_tools_vertexpaint_options(Panel, View3DPaintPanel): bl_context = ".vertexpaint" # dot on purpose (access from topbar) bl_label = "Options" bl_options = {'DEFAULT_CLOSED'} @@ -1337,9 +1352,12 @@ class VIEW3D_PT_tools_vertexpaint(Panel, View3DPaintPanel): def draw(self, context): layout = self.layout - col = layout.column() + layout.label(text="Unified Brush") - self.unified_paint_settings(col, context) + layout.use_property_split = True + layout.use_property_decorate = False + + self.unified_paint_settings(layout, context) # TODO, move to space_view3d.py @@ -1359,9 +1377,10 @@ class VIEW3D_PT_tools_vertexpaint_symmetry(Panel, View3DPaintPanel): # TODO, move to space_view3d.py -class VIEW3D_PT_tools_imagepaint_external(Panel, View3DPaintPanel): +class VIEW3D_PT_tools_imagepaint_options_external(Panel, View3DPaintPanel): bl_context = ".imagepaint" # dot on purpose (access from topbar) bl_label = "External" + bl_parent_id = "VIEW3D_PT_tools_imagepaint_options" bl_options = {'DEFAULT_CLOSED'} def draw(self, context): @@ -1412,9 +1431,9 @@ class VIEW3D_PT_tools_imagepaint_symmetry(Panel, View3DPaintPanel): # TODO, move to space_view3d.py -class VIEW3D_PT_tools_projectpaint(View3DPaintPanel, Panel): +class VIEW3D_PT_tools_imagepaint_options(View3DPaintPanel, Panel): bl_context = ".imagepaint" # dot on purpose (access from topbar) - bl_label = "Projection Paint" + bl_label = "Options" bl_options = {'DEFAULT_CLOSED'} @classmethod @@ -1443,9 +1462,9 @@ class VIEW3D_PT_tools_projectpaint(View3DPaintPanel, Panel): col.prop(ipaint, "use_backface_culling", text="Backface Culling") -class VIEW3D_PT_tools_projectpaint_unified(Panel, View3DPaintPanel): +class VIEW3D_PT_tools_imagepaint_options_unified(Panel, View3DPaintPanel): bl_context = ".imagepaint" # dot on purpose (access from topbar) - bl_parent_id = "VIEW3D_PT_tools_projectpaint" + bl_parent_id = "VIEW3D_PT_tools_imagepaint_options" bl_label = "Unified Brush" def draw(self, context): @@ -1456,10 +1475,10 @@ class VIEW3D_PT_tools_projectpaint_unified(Panel, View3DPaintPanel): self.unified_paint_settings(layout, context) -class VIEW3D_PT_tools_projectpaint_cavity(View3DPaintPanel, Panel): +class VIEW3D_PT_tools_imagepaint_options_cavity(View3DPaintPanel, Panel): bl_context = ".imagepaint" # dot on purpose (access from topbar) bl_label = "Cavity Mask" - bl_parent_id = "VIEW3D_PT_tools_projectpaint" + bl_parent_id = "VIEW3D_PT_tools_imagepaint_options" bl_options = {'DEFAULT_CLOSED'} def draw_header(self, context): @@ -1600,7 +1619,7 @@ class VIEW3D_PT_tools_particlemode_options_display(View3DPanel, Panel): sub.prop(pe, "fade_frames", slider=True) -class VIEW3D_PT_tools_normal(View3DPanel, Panel): +class VIEW3D_PT_tools_meshedit_normal(View3DPanel, Panel): bl_category = "" bl_context = ".mesh_edit" bl_label = "Normals" @@ -1981,6 +2000,7 @@ class VIEW3D_PT_gpencil_brush_presets(PresetPanel, Panel): classes = ( + VIEW3D_PT_tools_meshedit_normal, VIEW3D_PT_tools_meshedit_options, VIEW3D_PT_tools_curveedit_options_stroke, VIEW3D_PT_tools_armatureedit_options, @@ -2007,20 +2027,21 @@ classes = ( VIEW3D_PT_tools_brush_display_custom_icon, VIEW3D_PT_sculpt_dyntopo, VIEW3D_PT_sculpt_dyntopo_remesh, + VIEW3D_PT_sculpt_symmetry, VIEW3D_PT_sculpt_options, VIEW3D_PT_sculpt_options_unified, VIEW3D_PT_sculpt_options_gravity, - VIEW3D_PT_sculpt_symmetry, VIEW3D_PT_tools_weightpaint_symmetry, VIEW3D_PT_tools_weightpaint_options, - VIEW3D_PT_tools_vertexpaint, + VIEW3D_PT_tools_weightpaint_options_unified, VIEW3D_PT_tools_vertexpaint_symmetry, - VIEW3D_PT_tools_imagepaint_external, + VIEW3D_PT_tools_vertexpaint_options, VIEW3D_PT_tools_imagepaint_symmetry, - VIEW3D_PT_tools_projectpaint, - VIEW3D_PT_tools_projectpaint_cavity, + VIEW3D_PT_tools_imagepaint_options, + VIEW3D_PT_tools_imagepaint_options_cavity, + VIEW3D_PT_tools_imagepaint_options_unified, + VIEW3D_PT_tools_imagepaint_options_external, VIEW3D_MT_tools_projectpaint_stencil, - VIEW3D_PT_tools_projectpaint_unified, VIEW3D_PT_tools_particlemode, VIEW3D_PT_tools_particlemode_options, VIEW3D_PT_tools_particlemode_options_shapecut, @@ -2043,7 +2064,6 @@ classes = ( VIEW3D_PT_tools_grease_pencil_sculpt_appearance, VIEW3D_PT_tools_grease_pencil_weight_appearance, VIEW3D_PT_tools_grease_pencil_interpolate, - VIEW3D_PT_tools_normal, ) if __name__ == "__main__": # only for live edit. |