Additional UI tweaking: the Freestyle toggle of the Include section in the Layers

panel is greyed out when Freestyle is globally disabled.
This commit is contained in:
Tamito Kajiyama 2012-10-29 23:17:07 +00:00
parent b8e68c08cb
commit 6dfa160109

@ -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):