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:
Lukas Toenne 2013-05-08 15:41:09 +00:00
parent d7c74acab1
commit a092611f67

@ -75,7 +75,7 @@ def node_group_items(context):
if group.bl_idname != ntree.bl_idname:
continue
# filter out recursive groups
if contains_group(ntree, group):
if contains_group(group, ntree):
continue
yield NodeItem(node_tree_group_type[group.bl_idname], group.name, { "node_tree" : "bpy.data.node_groups['%s']" % group.name })