Node Wrangler - limit access for built-in tree types
Differential Revision: D2262
This commit is contained in:
parent
bf668cc3ee
commit
02e3a578e2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue