Fix T78801: Eevee missing setting to enable/disable freestyle per view layer
This was only visible when Cycles was enabled.
This commit is contained in:
parent
4e8fc15586
commit
48f10319c6
|
@ -782,10 +782,6 @@ class CYCLES_RENDER_PT_filter(CyclesButtonsPanel, Panel):
|
||||||
col.prop(view_layer, "use_solid", text="Surfaces")
|
col.prop(view_layer, "use_solid", text="Surfaces")
|
||||||
col.prop(view_layer, "use_strand", text="Hair")
|
col.prop(view_layer, "use_strand", text="Hair")
|
||||||
col.prop(view_layer, "use_volumes", text="Volumes")
|
col.prop(view_layer, "use_volumes", text="Volumes")
|
||||||
if with_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):
|
class CYCLES_RENDER_PT_override(CyclesButtonsPanel, Panel):
|
||||||
|
|
|
@ -115,6 +115,15 @@ class VIEWLAYER_PT_freestyle(ViewLayerFreestyleButtonsPanel, Panel):
|
||||||
bl_label = "Freestyle"
|
bl_label = "Freestyle"
|
||||||
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE'}
|
COMPAT_ENGINES = {'BLENDER_RENDER', 'BLENDER_EEVEE'}
|
||||||
|
|
||||||
|
def draw_header(self, context):
|
||||||
|
view_layer = context.view_layer
|
||||||
|
rd = context.scene.render
|
||||||
|
|
||||||
|
layout = self.layout
|
||||||
|
|
||||||
|
layout.active = rd.use_freestyle
|
||||||
|
layout.prop(view_layer, "use_freestyle", text="")
|
||||||
|
|
||||||
def draw(self, context):
|
def draw(self, context):
|
||||||
layout = self.layout
|
layout = self.layout
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue