diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-07-10 19:40:35 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-07-10 19:41:16 +0300 |
commit | 48f10319c6b67b704f26762fdec8e439640d46b6 (patch) | |
tree | e21fdefb71665a0f93ed3cc927b878449aca3370 /release | |
parent | 4e8fc15586f549e7a46099cecde8d81c87d855c4 (diff) |
Fix T78801: Eevee missing setting to enable/disable freestyle per view layer
This was only visible when Cycles was enabled.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_freestyle.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/release/scripts/startup/bl_ui/properties_freestyle.py b/release/scripts/startup/bl_ui/properties_freestyle.py index f70789ebeed..54b1ca3d910 100644 --- a/release/scripts/startup/bl_ui/properties_freestyle.py +++ b/release/scripts/startup/bl_ui/properties_freestyle.py @@ -115,6 +115,15 @@ class VIEWLAYER_PT_freestyle(ViewLayerFreestyleButtonsPanel, Panel): bl_label = "Freestyle" 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): layout = self.layout |