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:
authorClément Foucault <foucault.clem@gmail.com>2019-10-02 16:47:36 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-10-02 17:56:22 +0300
commit3734ae5d5484a1d52fefd8d6d82ace4211df8011 (patch)
tree8c41dee5d16861a13808c37717ae4d45d3044e81 /source/blender/nodes
parentf8f28dc7841a7509727d93f05a941db82746dbd1 (diff)
Fix T70331 Node group passthrough is broken
Diffstat (limited to 'source/blender/nodes')
-rw-r--r--source/blender/nodes/shader/node_shader_tree.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/nodes/shader/node_shader_tree.c b/source/blender/nodes/shader/node_shader_tree.c
index 92266600612..cb73931a381 100644
--- a/source/blender/nodes/shader/node_shader_tree.c
+++ b/source/blender/nodes/shader/node_shader_tree.c
@@ -441,6 +441,8 @@ static void flatten_group_do(bNodeTree *ntree, bNode *gnode)
}
}
}
+ /* Also iterate over the new links to cover passthrough links. */
+ glinks_last = ntree->links.last;
/* output links */
for (tlink = ntree->links.first; tlink != glinks_first->next; tlink = tlink->next) {
if (tlink->fromnode == gnode) {