Additional UI tweaking: the Freestyle toggle of the Include section in the Layers
authorTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Mon, 29 Oct 2012 23:17:07 +0000 (23:17 +0000)
committerTamito Kajiyama <rd6t-kjym@asahi-net.or.jp>
Mon, 29 Oct 2012 23:17:07 +0000 (23:17 +0000)
panel is greyed out when Freestyle is globally disabled.

release/scripts/startup/bl_ui/properties_render_layer.py

index 342f87c7779637d11db181418ec29819e7a92d3a..940d5f0d63110b37a86b9390dd08e6788619292d 100644 (file)
@@ -104,7 +104,9 @@ class RENDERLAYER_PT_layer_options(RenderLayerButtonsPanel, Panel):
         col = split.column()
         col.prop(rl, "use_edge_enhance")
         col.prop(rl, "use_strand")
-        col.prop(rl, "use_freestyle")
+        row = col.row()
+        row.prop(rl, "use_freestyle")
+        row.active = rd.use_freestyle
 
 
 class RENDERLAYER_PT_layer_passes(RenderLayerButtonsPanel, Panel):