Commit: 72b4f9191462215ec66ba699a7cd1e797e7032b7
Author: Jacques Lucke
Date:   Thu Dec 29 14:19:50 2022 +0100
Branches: master
https://developer.blender.org/rB72b4f9191462215ec66ba699a7cd1e797e7032b7

Fix T103526: crash when subsurface connects to Shader to RGB

This was caused by {rB7b82d8f029cd1088efd5fbb8bf}.

===================================================================

M       source/blender/nodes/shader/node_shader_tree.cc

===================================================================

diff --git a/source/blender/nodes/shader/node_shader_tree.cc 
b/source/blender/nodes/shader/node_shader_tree.cc
index 66bff5a2ada..691ffc936a7 100644
--- a/source/blender/nodes/shader/node_shader_tree.cc
+++ b/source/blender/nodes/shader/node_shader_tree.cc
@@ -588,6 +588,7 @@ static bNode *ntree_shader_copy_branch(bNodeTree *ntree,
       nodeUniqueID(ntree, nodes_copy[id]);
 
       nodes_copy[id]->runtime->tmp_flag = -2; /* Copy */
+      nodes_copy[id]->runtime->original = node->runtime->original;
       /* Make sure to clear all sockets links as they are invalid. */
       LISTBASE_FOREACH (bNodeSocket *, sock, &nodes_copy[id]->inputs) {
         sock->link = nullptr;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to