diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2021-10-07 17:07:27 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2021-10-07 17:07:27 +0300 |
commit | b53fd38ff327c2f52bf0c2c309e55fdaa549406d (patch) | |
tree | 1bc316ee7213cc39e4bb62c0f2d43c54ceeab7c5 /release/scripts/startup/bl_ui/properties_material.py | |
parent | b31a265adac219f20ab461af1b32cdca2f9f7620 (diff) |
Cleanup Pep8temp-eevee-gpencil-rewrite
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_material.py')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_material.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/release/scripts/startup/bl_ui/properties_material.py b/release/scripts/startup/bl_ui/properties_material.py index 5ec634a3bf4..bf8fec81aa6 100644 --- a/release/scripts/startup/bl_ui/properties_material.py +++ b/release/scripts/startup/bl_ui/properties_material.py @@ -66,7 +66,9 @@ class MaterialButtonsPanel: ob = context.active_object is_scene_render = ob and ob.use_grease_pencil_scene_engine mat = context.material - return mat and (((context.engine in cls.COMPAT_ENGINES) and not mat.grease_pencil) or (mat.grease_pencil and mat.use_nodes and is_scene_render)) + return mat and (((context.engine in cls.COMPAT_ENGINES) and + not mat.grease_pencil) or (mat.grease_pencil and + mat.use_nodes and is_scene_render)) class MATERIAL_PT_preview(MaterialButtonsPanel, Panel): @@ -79,7 +81,9 @@ class MATERIAL_PT_preview(MaterialButtonsPanel, Panel): ob = context.active_object is_scene_render = ob and ob.use_grease_pencil_scene_engine mat = context.material - return mat and (((context.engine in cls.COMPAT_ENGINES) and not mat.grease_pencil) or (mat.grease_pencil and mat.use_nodes and is_scene_render)) + return mat and (((context.engine in cls.COMPAT_ENGINES) and + not mat.grease_pencil) or (mat.grease_pencil and + mat.use_nodes and is_scene_render)) def draw(self, context): self.layout.template_preview(context.material) |