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:
Diffstat (limited to 'node_wrangler.py')
-rw-r--r--node_wrangler.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/node_wrangler.py b/node_wrangler.py
index 48b153b2..1f03ecd5 100644
--- a/node_wrangler.py
+++ b/node_wrangler.py
@@ -1058,8 +1058,10 @@ class NWNodeWrangler(bpy.types.AddonPreferences):
def nw_check(context):
space = context.space_data
+ valid_trees = ["ShaderNodeTree", "CompositorNodeTree", "TextureNodeTree"]
+
valid = False
- if space.type == 'NODE_EDITOR' and space.node_tree is not None:
+ if space.type == 'NODE_EDITOR' and space.node_tree is not None and space.tree_type in valid_trees:
valid = True
return valid