Internal need_exec tagging for group nodes, fixes #27034. Non-compositor node trees (texture and material) only use the need_exec flag to exclude cyclic dependencies, ugly double use of that flag. Oh well, hopefully can replace this altogether one day ;)

This commit is contained in:
Lukas Toenne 2011-04-20 20:31:43 +00:00
parent 290a641c32
commit a6c2d8680b

@ -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;