diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/nodes/composite/node_composite_tree.c | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/source/blender/nodes/composite/node_composite_tree.c b/source/blender/nodes/composite/node_composite_tree.c index cd69cf4982d..6d5b85da569 100644 --- a/source/blender/nodes/composite/node_composite_tree.c +++ b/source/blender/nodes/composite/node_composite_tree.c @@ -104,9 +104,9 @@ static void free_cache(bNodeTree *ntree) } /* local tree then owns all compbufs */ -static void localize(bNodeTree *localtree, bNodeTree *ntree) +static void localize(bNodeTree *UNUSED(localtree), bNodeTree *ntree) { - bNode *node, *node_next; + bNode *node; bNodeSocket *sock; for (node = ntree->nodes.first; node; node = node->next) { @@ -132,26 +132,6 @@ static void localize(bNodeTree *localtree, bNodeTree *ntree) sock->new_sock->new_sock = sock; } } - - /* replace muted nodes and reroute nodes by internal links */ - for (node = localtree->nodes.first; node; node = node_next) { - node_next = node->next; - - if (node->flag & NODE_MUTED || node->type == NODE_REROUTE) { - /* make sure the update tag isn't lost when removing the muted node. - * propagate this to all downstream nodes. - */ - if (node->need_exec) { - bNodeLink *link; - for (link = localtree->links.first; link; link = link->next) - if (link->fromnode == node && link->tonode) - link->tonode->need_exec = 1; - } - - nodeInternalRelink(localtree, node); - nodeFreeNode(localtree, node); - } - } } static void local_sync(bNodeTree *localtree, bNodeTree *ntree) |