Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-12-20 05:01:40 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-20 05:11:04 +0300
commite71d489254c9d9639902e3ae8d2393a902eb11c8 (patch)
tree38f62429ed1331123658fdcf1e0fdfc64f1aec5f /release/scripts/startup/bl_ui/space_node.py
parent592165665543607bf43fdb13c4d2d7e51b37e8c6 (diff)
Cleanup: style
Diffstat (limited to 'release/scripts/startup/bl_ui/space_node.py')
-rw-r--r--release/scripts/startup/bl_ui/space_node.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/release/scripts/startup/bl_ui/space_node.py b/release/scripts/startup/bl_ui/space_node.py
index 6b407daaccb..73afb62567c 100644
--- a/release/scripts/startup/bl_ui/space_node.py
+++ b/release/scripts/startup/bl_ui/space_node.py
@@ -145,7 +145,6 @@ class NODE_HT_header(Header):
layout.template_ID(snode, "node_tree", new="node.new_node_tree")
-
layout.prop(snode, "pin", text="")
layout.separator_spacer()
@@ -576,9 +575,11 @@ class EEVEE_NODE_PT_material_settings(Panel):
@classmethod
def poll(cls, context):
snode = context.space_data
- return (context.engine in cls.COMPAT_ENGINES) and \
- snode.tree_type == 'ShaderNodeTree' and snode.id and \
- snode.id.bl_rna.identifier == 'Material'
+ return (
+ (context.engine in cls.COMPAT_ENGINES) and
+ (snode.tree_type == 'ShaderNodeTree' and snode.id) and
+ (snode.id.bl_rna.identifier == 'Material')
+ )
def draw(self, context):
material = context.space_data.id
@@ -595,8 +596,10 @@ class NODE_PT_material_viewport(Panel):
@classmethod
def poll(cls, context):
snode = context.space_data
- return snode.tree_type == 'ShaderNodeTree' and snode.id and \
- snode.id.bl_rna.identifier == 'Material'
+ return (
+ (snode.tree_type == 'ShaderNodeTree' and snode.id) and
+ (snode.id.bl_rna.identifier == "Material")
+ )
def draw(self, context):
material = context.space_data.id