Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Toenne <lukas.toenne@googlemail.com>2012-08-06 22:49:28 +0400
committerLukas Toenne <lukas.toenne@googlemail.com>2012-08-06 22:49:28 +0400
commitf961afece0a7bbcf758234bdf19cd35eae30dea2 (patch)
tree9a02a8c1b3e9ebde23e6166ddf609341f96be98f /source/blender/nodes/composite/node_composite_tree.c
parente276a7c8058d146f81ce08f12a0c45f77906515b (diff)
Fix for incomplete Reroute node updates. Adding reroute nodes by spliting links would often result in unrelated color sockets or otherwise miss updates.
The reason is that the per-node updates used for Reroute node type inheritance are not supposed to be looking at connected nodes, they are purely for "local" updates. For this sort of "global" update which requires depth-first search, the update function on the node tree level must be used instead.
Diffstat (limited to 'source/blender/nodes/composite/node_composite_tree.c')
-rw-r--r--source/blender/nodes/composite/node_composite_tree.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/nodes/composite/node_composite_tree.c b/source/blender/nodes/composite/node_composite_tree.c
index 18ab3b7d6d1..917c1163096 100644
--- a/source/blender/nodes/composite/node_composite_tree.c
+++ b/source/blender/nodes/composite/node_composite_tree.c
@@ -50,6 +50,7 @@
#include "BKE_tracking.h"
#include "BKE_utildefines.h"
+#include "node_common.h"
#include "node_exec.h"
#include "node_util.h"
@@ -247,6 +248,8 @@ static void local_merge(bNodeTree *localtree, bNodeTree *ntree)
static void update(bNodeTree *ntree)
{
ntreeSetOutput(ntree);
+
+ ntree_update_reroute_nodes(ntree);
}
bNodeTreeType ntreeType_Composite = {