diff options
author | Thomas Dinges <blender@dingto.org> | 2012-01-19 21:30:29 +0400 |
---|---|---|
committer | Thomas Dinges <blender@dingto.org> | 2012-01-19 21:30:29 +0400 |
commit | 186c0531e2e8856ac62e7de404bcdfaf16a8f926 (patch) | |
tree | 640df3e8fe330aa5eee08e7a46188c6a4c9a925d /release | |
parent | 1d46bbef7e07d70cf44d304f261bc5a1e8056f24 (diff) |
Remesh Modifier UI:
* Some tweaks to the modifier UI
* Hide sharpness property, instead of greying out.
The policy is to use greying out when a property depends on a boolean, if it depends on an enum item, hide it.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_data_modifier.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_modifier.py b/release/scripts/startup/bl_ui/properties_data_modifier.py index 9be3b00e4cf..766daba58b8 100644 --- a/release/scripts/startup/bl_ui/properties_data_modifier.py +++ b/release/scripts/startup/bl_ui/properties_data_modifier.py @@ -814,12 +814,13 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel): def REMESH(self, layout, ob, md): layout.prop(md, "mode") - - layout.prop(md, "octree_depth") - layout.prop(md, "scale") + row = layout.row() - row.active = md.mode == "SHARP" - row.prop(md, "sharpness") + row.prop(md, "octree_depth") + row.prop(md, "scale") + + if md.mode == "SHARP": + layout.prop(md, "sharpness") layout.prop(md, "remove_disconnected_pieces") row = layout.row() |