[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [54964] trunk/blender/release/scripts/ startup/bl_ui/properties_scene.py: UI / World Units:

Thomas Dinges blender at dingto.org
Fri Mar 1 20:15:32 CET 2013


Revision: 54964
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=54964
Author:   dingto
Date:     2013-03-01 19:15:32 +0000 (Fri, 01 Mar 2013)
Log Message:
-----------
UI / World Units:
* 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. 

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

Modified: trunk/blender/release/scripts/startup/bl_ui/properties_scene.py
===================================================================
--- trunk/blender/release/scripts/startup/bl_ui/properties_scene.py	2013-03-01 19:07:28 UTC (rev 54963)
+++ trunk/blender/release/scripts/startup/bl_ui/properties_scene.py	2013-03-01 19:15:32 UTC (rev 54964)
@@ -77,10 +77,10 @@
         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):




More information about the Bf-blender-cvs mailing list