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

git.blender.org/blender-addons.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2018-12-19 03:56:05 +0300
committerCampbell Barton <ideasman42@gmail.com>2018-12-19 03:56:05 +0300
commit6a1ce20043860e4f836294d46a86b5fcf7fbf1a8 (patch)
treed99f11f29954067c147cde7b99e97ddb19ef5e00 /node_wrangler.py
parent156c5ea6a45d0549d8422e3ea295972dec7766c3 (diff)
parent9cc2ad1eaf941d8ed3b5542a3d5cdfccec7ba60b (diff)
Merge branch 'master' into blender2.8
Diffstat (limited to 'node_wrangler.py')
-rw-r--r--node_wrangler.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/node_wrangler.py b/node_wrangler.py
index b27e469d..d3fd8448 100644
--- a/node_wrangler.py
+++ b/node_wrangler.py
@@ -2372,7 +2372,10 @@ class NWCopySettings(Operator, NWBase):
def poll(cls, context):
valid = False
if nw_check(context):
- if context.active_node is not None and context.active_node.type is not 'FRAME':
+ if (
+ context.active_node is not None and
+ context.active_node.type != 'FRAME'
+ ):
valid = True
return valid
@@ -2955,7 +2958,7 @@ class NWAddReroutes(Operator, NWBase):
reroutes_count = 0 # will be used when aligning reroutes added to hidden nodes
for out_i, output in enumerate(node.outputs):
pass_used = False # initial value to be analyzed if 'R_LAYERS'
- # if node is not 'R_LAYERS' - "pass_used" not needed, so set it to True
+ # if node != 'R_LAYERS' - "pass_used" not needed, so set it to True
if node.type != 'R_LAYERS':
pass_used = True
else: # if 'R_LAYERS' check if output represent used render pass