Fix T76225: Cycles View layer filters are grayed out while still working

Mistake in rB7fc60bff14a6.

Maniphest Tasks: T76225

Differential Revision: https://developer.blender.org/D7566
This commit is contained in:
Philipp Oeser 2020-04-29 12:53:38 +02:00
parent 7f5367eaae
commit d07dab0d61
Notes: blender-bot 2023-02-14 07:36:17 +01:00
Referenced by issue #76225, View layer filters are grayed out while still working.
1 changed files with 3 additions and 2 deletions

View File

@ -770,8 +770,9 @@ class CYCLES_RENDER_PT_filter(CyclesButtonsPanel, Panel):
col.prop(view_layer, "use_strand", text="Hair")
col.prop(view_layer, "use_volumes", text="Volumes")
if with_freestyle:
col.prop(view_layer, "use_freestyle", text="Freestyle")
col.active = rd.use_freestyle
sub = col.row(align=True)
sub.prop(view_layer, "use_freestyle", text="Freestyle")
sub.active = rd.use_freestyle
class CYCLES_RENDER_PT_override(CyclesButtonsPanel, Panel):