Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Dinges <blender@dingto.org>2013-03-01 23:15:32 +0400
committerThomas Dinges <blender@dingto.org>2013-03-01 23:15:32 +0400
commit70fba545457dd2ae8b36a367280ea6bd0c2c5e40 (patch)
tree2769514696ef1cfd5ce8f105f613578c598a039b /release
parent419ff8754548d8d7960f435420c4b30093ea6e2d (diff)
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.
Diffstat (limited to 'release')
-rw-r--r--release/scripts/startup/bl_ui/properties_scene.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/properties_scene.py b/release/scripts/startup/bl_ui/properties_scene.py
index 519f9ca47fa..eed8c84a389 100644
--- a/release/scripts/startup/bl_ui/properties_scene.py
+++ b/release/scripts/startup/bl_ui/properties_scene.py
@@ -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):