diff options
author | Joseph Eagar <joeedh@gmail.com> | 2021-04-11 22:27:02 +0300 |
---|---|---|
committer | Joseph Eagar <joeedh@gmail.com> | 2021-04-11 22:27:02 +0300 |
commit | 7dbb4c9b2dadba447c1ef835cd1c4a964f1b6872 (patch) | |
tree | 0aa73e3c6bb8854738b9219fe8c742f80d1469bb /release/scripts/startup/bl_ui/space_view3d_toolbar.py | |
parent | fe67ca56d6b426bb70ed284dbf23249f2d6d3054 (diff) |
Fix issues with last commit. Also, simplify brush now
uses dyntopo local overrides to always enable collapse instead
of being hardcoded.
Diffstat (limited to 'release/scripts/startup/bl_ui/space_view3d_toolbar.py')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 286b44a18db..108758f0eea 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -780,21 +780,25 @@ class VIEW3D_PT_sculpt_dyntopo_advanced(Panel, View3DPaintPanel): brush = settings.brush col = layout.column() - print(dir(col)) col.label(text="Local Brush Settings") + + row = col.row() + row.prop(brush.dyntopo, "disabled", text="Disable Dyntopo") + + col.label(text="Overrides") inherit_all = "ALL" in brush.dyntopo.inherit - col.prop_enum(brush.dyntopo, "inherit", value="ALL", text="All Scene Defaults", icon="LOCKED" if inherit_all else "UNLOCKED"); + col.prop_enum(brush.dyntopo, "inherit", value="ALL", text="Use All Defaults", icon="LOCKED" if inherit_all else "UNLOCKED") def do_prop(key): row = col.row() if key.upper() in brush.dyntopo.inherit: - icon = "LOCKED" - else: icon = "UNLOCKED" + else: + icon = "LOCKED" - row.prop_enum(brush.dyntopo, "inherit", value=key.upper(), icon=icon, text=""); + row.prop_enum(brush.dyntopo, "inherit", value=key.upper(), icon=icon, text="") row2 = row.row() row2.prop(brush.dyntopo, key) @@ -806,12 +810,12 @@ class VIEW3D_PT_sculpt_dyntopo_advanced(Panel, View3DPaintPanel): row.enabled = False col = layout.column() - do_prop("subdivide"); - do_prop("collapse"); - do_prop("spacing"); - do_prop("detail_range"); - do_prop("detail_percent"); - do_prop("constant_detail"); + do_prop("subdivide") + do_prop("collapse") + do_prop("spacing") + do_prop("detail_range") + do_prop("detail_percent") + do_prop("constant_detail") do_prop("mode") # TODO, move to space_view3d.py |