UI / Freestyle:
authorThomas Dinges <blender@dingto.org>
Sat, 8 Jun 2013 17:10:17 +0000 (17:10 +0000)
committerThomas Dinges <blender@dingto.org>
Sat, 8 Jun 2013 17:10:17 +0000 (17:10 +0000)
* Properties, which depend on an enum should be hidden, not greyed out.

release/scripts/startup/bl_ui/properties_freestyle.py

index 04fcddf96038cff20a1e65f22c4a9b8877089389..528608790cd610b94335bf9001b87d1139eb877d 100644 (file)
@@ -56,9 +56,8 @@ class RENDER_PT_freestyle(RenderFreestyleButtonsPanel, Panel):
         row.label(text="Line Thickness:")
         row.prop(rd, "line_thickness_mode", expand=True)
         
-        row = layout.row()
-        row.active = (rd.line_thickness_mode == 'ABSOLUTE')
-        row.prop(rd, "line_thickness")
+        if (rd.line_thickness_mode == 'ABSOLUTE'):
+            layout.prop(rd, "line_thickness")
 
         row = layout.row()
         row.label(text="Line style settings are found in the Render Layers context")