[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [56596] trunk/blender/release/scripts/ startup/nodeitems_builtins.py: Fix for node item polling: recursion check was the wrong way around, needs to test is the parent tree is inside the group.

Lukas Toenne lukas.toenne at googlemail.com
Wed May 8 17:41:09 CEST 2013


Revision: 56596
          http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=56596
Author:   lukastoenne
Date:     2013-05-08 15:41:09 +0000 (Wed, 08 May 2013)
Log Message:
-----------
Fix for node item polling: recursion check was the wrong way around, needs to test is the parent tree is inside the group.

Modified Paths:
--------------
    trunk/blender/release/scripts/startup/nodeitems_builtins.py

Modified: trunk/blender/release/scripts/startup/nodeitems_builtins.py
===================================================================
--- trunk/blender/release/scripts/startup/nodeitems_builtins.py	2013-05-08 15:41:07 UTC (rev 56595)
+++ trunk/blender/release/scripts/startup/nodeitems_builtins.py	2013-05-08 15:41:09 UTC (rev 56596)
@@ -75,7 +75,7 @@
         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 })




More information about the Bf-blender-cvs mailing list