From 70fba545457dd2ae8b36a367280ea6bd0c2c5e40 Mon Sep 17 00:00:00 2001 From: Thomas Dinges Date: Fri, 1 Mar 2013 19:15:32 +0000 Subject: 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. --- release/scripts/startup/bl_ui/properties_scene.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'release') 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): -- cgit v1.2.3