Commit: 392f4481a75111457be3334a39a9d567ed167963
Author: Hans Goudey
Date:   Mon Jan 2 16:06:37 2023 -0500
Branches: temp-nodes-group-declarations
https://developer.blender.org/rB392f4481a75111457be3334a39a9d567ed167963

Remove redundant node declaration allocation

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

M       source/blender/blenkernel/intern/node_tree_update.cc

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

diff --git a/source/blender/blenkernel/intern/node_tree_update.cc 
b/source/blender/blenkernel/intern/node_tree_update.cc
index 573ef6e0b16..637869daa78 100644
--- a/source/blender/blenkernel/intern/node_tree_update.cc
+++ b/source/blender/blenkernel/intern/node_tree_update.cc
@@ -547,9 +547,6 @@ class NodeTreeMainUpdater {
           ntype.updatefunc(&ntree, node);
         }
         if (ntype.declare_dynamic) {
-          if (!node->runtime->declaration) {
-            node->runtime->declaration = new nodes::NodeDeclaration();
-          }
           nodes::update_node_declaration_and_sockets(ntree, *node);
         }
       }

_______________________________________________
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