[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [43533] trunk/blender/release/scripts/ startup/bl_ui/properties_data_modifier.py: Remesh Modifier UI:

Thomas Dinges blender at dingto.org
Thu Jan 19 18:30:43 CET 2012


Revision: 43533
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=43533
Author:   dingto
Date:     2012-01-19 17:30:29 +0000 (Thu, 19 Jan 2012)
Log Message:
-----------
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. 

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py

Modified: trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py	2012-01-19 16:30:56 UTC (rev 43532)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_data_modifier.py	2012-01-19 17:30:29 UTC (rev 43533)
@@ -814,13 +814,14 @@
 
     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()
         row.active = md.remove_disconnected_pieces



More information about the Bf-blender-cvs mailing list