UI / World Units:
authorThomas Dinges <blender@dingto.org>
Fri, 1 Mar 2013 19:15:32 +0000 (19:15 +0000)
committerThomas Dinges <blender@dingto.org>
Fri, 1 Mar 2013 19:15:32 +0000 (19:15 +0000)
* Consistency tweak: for properties based on an enum, we hide the buttons and do not grey out.
Greying out is for properties based on a boolean.

release/scripts/startup/bl_ui/properties_scene.py

index 519f9ca..eed8c84 100644 (file)
@@ -77,10 +77,10 @@ class SCENE_PT_unit(SceneButtonsPanel, Panel):
         col.row().prop(unit, "system", expand=True)
         col.row().prop(unit, "system_rotation", expand=True)
 
-        row = layout.row()
-        row.active = (unit.system != 'NONE')
-        row.prop(unit, "scale_length", text="Scale")
-        row.prop(unit, "use_separate")
+        if unit.system != 'NONE':
+            row = layout.row()
+            row.prop(unit, "scale_length", text="Scale")
+            row.prop(unit, "use_separate")
 
 
 class SCENE_PT_keying_sets(SceneButtonsPanel, Panel):