Internal need_exec tagging for group nodes, fixes #27034. Non-compositor node trees...
authorLukas Toenne <lukas.toenne@googlemail.com>
Wed, 20 Apr 2011 20:31:43 +0000 (20:31 +0000)
committerLukas Toenne <lukas.toenne@googlemail.com>
Wed, 20 Apr 2011 20:31:43 +0000 (20:31 +0000)
source/blender/blenkernel/intern/node.c

index 272df18c73d206dc61983cfa13d9689a3f92ed28..18268d72609268c1ba55e43eb43f2416f1152f17 100644 (file)
@@ -2235,6 +2235,10 @@ static void group_tag_used_outputs(bNode *gnode, bNodeStack *stack, bNodeStack *
                        if (ns)
                                ns->sockettype = sock->type;
                }
+               
+               /* non-composite trees do all nodes by default */
+               if (ntree->type!=NTREE_COMPOSIT)
+                       node->need_exec = 1;
        }
 }
 
@@ -2320,7 +2324,7 @@ void ntreeBeginExecTree(bNodeTree *ntree)
                for(node= ntree->nodes.first; node; node= node->next) {
                        bNodeSocket *sock;
                        
-                       /* composite has own need_exec tag handling */
+                       /* non-composite trees do all nodes by default */
                        if(ntree->type!=NTREE_COMPOSIT)
                                node->need_exec= 1;