[Bf-blender-cvs] [392f4481a75] temp-nodes-group-declarations: Remove redundant node declaration allocation

Hans Goudey noreply at git.blender.org
Mon Jan 2 22:07:02 CET 2023


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);
         }
       }



More information about the Bf-blender-cvs mailing list