diff options
author | Aaron Carlisle <carlisle.b3d@gmail.com> | 2021-09-15 05:57:46 +0300 |
---|---|---|
committer | Aaron Carlisle <carlisle.b3d@gmail.com> | 2021-09-15 05:57:57 +0300 |
commit | 94dd30208e3f54ac2a6863b858fdb81dd840feca (patch) | |
tree | f7b9d75c53828a5335c46294c4e5beb1039bc555 | |
parent | 56f8d7c7059728bad0fe087c291e4829398eab16 (diff) |
UI: Addition Changes to Freestyle Properties
- Material Properties: Use split column layout
- Remove the redundent term 'Options'
- Remove the redundent term 'Freesttle'
-rw-r--r-- | release/scripts/startup/bl_ui/properties_freestyle.py | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/release/scripts/startup/bl_ui/properties_freestyle.py b/release/scripts/startup/bl_ui/properties_freestyle.py index 5ca44bb6555..3c765c10154 100644 --- a/release/scripts/startup/bl_ui/properties_freestyle.py +++ b/release/scripts/startup/bl_ui/properties_freestyle.py @@ -168,8 +168,8 @@ class VIEWLAYER_PT_freestyle(ViewLayerFreestyleButtonsPanel, Panel): col.prop(freestyle, "as_render_pass", text="As Render Pass") -class VIEWLAYER_PT_freestyle_edge_detection_options(ViewLayerFreestyleButtonsPanel, Panel): - bl_label = "Edge Detection Options" +class VIEWLAYER_PT_freestyle_edge_detection(ViewLayerFreestyleButtonsPanel, Panel): + bl_label = "Edge Detection" bl_parent_id = "VIEWLAYER_PT_freestyle" COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE', 'BLENDER_WORKBENCH'} @@ -435,7 +435,7 @@ class VIEWLAYER_PT_freestyle_lineset_collection(ViewLayerFreestyleLineStyle, Pan lineset = freestyle.linesets.active layout.active = lineset.select_by_collection - layout.row().prop(lineset, "collection", text="Freestyle Lineset Collection") + layout.row().prop(lineset, "collection", text="Line Set Collection") layout.row().prop(lineset, "collection_negation", expand=True, text="Negation") @@ -1258,12 +1258,14 @@ class MATERIAL_PT_freestyle_line(MaterialFreestyleButtonsPanel, Panel): def draw(self, context): layout = self.layout + layout.use_property_split = True + layout.use_property_decorate = False mat = context.material - row = layout.row() - row.prop(mat, "line_color", text="") - row.prop(mat, "line_priority", text="Priority") + col = layout.column() + col.prop(mat, "line_color") + col.prop(mat, "line_priority", text="Priority") classes = ( @@ -1271,7 +1273,7 @@ classes = ( VIEWLAYER_UL_linesets, RENDER_MT_lineset_context_menu, VIEWLAYER_PT_freestyle, - VIEWLAYER_PT_freestyle_edge_detection_options, + VIEWLAYER_PT_freestyle_edge_detection, VIEWLAYER_PT_freestyle_style_modules, VIEWLAYER_PT_freestyle_lineset, VIEWLAYER_PT_freestyle_lineset_visibilty, |