diff --git a/node_wrangler.py b/node_wrangler.py index 3b3fd06921efe5c02ccc707f6bdf5b2d6f86efd0..aa3b6bc25ab91c57a4db24b728fd135d3beecc57 100644 --- a/node_wrangler.py +++ b/node_wrangler.py @@ -822,11 +822,13 @@ def nw_check(context): space = context.space_data valid_trees = ["ShaderNodeTree", "CompositorNodeTree", "TextureNodeTree", "GeometryNodeTree"] - valid = False - if space.type == 'NODE_EDITOR' and space.node_tree is not None and space.tree_type in valid_trees: - valid = True + if (space.type == 'NODE_EDITOR' + and space.node_tree is not None + and space.node_tree.library is None + and space.tree_type in valid_trees): + return True - return valid + return False class NWBase: @classmethod