Fix for node item polling: recursion check was the wrong way around, needs to test is the parent tree is inside the group.
This commit is contained in:
@@ -75,7 +75,7 @@ def node_group_items(context):
|
|||||||
if group.bl_idname != ntree.bl_idname:
|
if group.bl_idname != ntree.bl_idname:
|
||||||
continue
|
continue
|
||||||
# filter out recursive groups
|
# filter out recursive groups
|
||||||
if contains_group(ntree, group):
|
if contains_group(group, ntree):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
yield NodeItem(node_tree_group_type[group.bl_idname], group.name, { "node_tree" : "bpy.data.node_groups['%s']" % group.name })
|
yield NodeItem(node_tree_group_type[group.bl_idname], group.name, { "node_tree" : "bpy.data.node_groups['%s']" % group.name })
|
||||||
|
Reference in New Issue
Block a user