[Bf-blender-cvs] [b53fd38ff32] temp-eevee-gpencil-rewrite: Cleanup Pep8

Antonio Vazquez noreply at git.blender.org
Thu Oct 7 16:07:34 CEST 2021


Commit: b53fd38ff327c2f52bf0c2c309e55fdaa549406d
Author: Antonio Vazquez
Date:   Thu Oct 7 16:07:27 2021 +0200
Branches: temp-eevee-gpencil-rewrite
https://developer.blender.org/rBb53fd38ff327c2f52bf0c2c309e55fdaa549406d

Cleanup Pep8

===================================================================

M	release/scripts/startup/bl_ui/properties_material.py
M	release/scripts/startup/bl_ui/properties_material_gpencil.py

===================================================================

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)
diff --git a/release/scripts/startup/bl_ui/properties_material_gpencil.py b/release/scripts/startup/bl_ui/properties_material_gpencil.py
index 8b26b950d5d..8f1902dcca8 100644
--- a/release/scripts/startup/bl_ui/properties_material_gpencil.py
+++ b/release/scripts/startup/bl_ui/properties_material_gpencil.py
@@ -262,7 +262,8 @@ class MATERIAL_PT_gpencil_preview(GPMaterialButtonsPanel, Panel):
         mat = context.material
         ob = context.active_object
         is_scene_render = ob and ob.use_grease_pencil_scene_engine
-        return (mat and mat.grease_pencil and (mat.use_nodes is False or is_scene_render is False))
+        return (mat and mat.grease_pencil and
+                (mat.use_nodes is False or is_scene_render is False))
 
     def draw(self, context):
         ma = context.material
@@ -280,7 +281,8 @@ class MATERIAL_PT_gpencil_custom_props(GPMaterialButtonsPanel, PropertyPanel, Pa
         mat = context.material
         ob = context.active_object
         is_scene_render = ob and ob.use_grease_pencil_scene_engine
-        return (mat and mat.grease_pencil and (mat.use_nodes is False or is_scene_render is False))
+        return (mat and mat.grease_pencil and
+                (mat.use_nodes is False or is_scene_render is False))
 
 
 def draw_material_settings(self, context):
@@ -319,7 +321,8 @@ class MATERIAL_PT_gpencil_settings(GPMaterialButtonsPanel, Panel):
         mat = context.material
         ob = context.active_object
         is_scene_render = ob and ob.use_grease_pencil_scene_engine
-        return (mat and mat.grease_pencil and (mat.use_nodes is False or is_scene_render is False))
+        return (mat and mat.grease_pencil and
+                (mat.use_nodes is False or is_scene_render is False))
 
     def draw(self, context):
         draw_material_settings(self, context)



More information about the Bf-blender-cvs mailing list