[Bf-blender-cvs] [8f2c3c63e97] master: Fix build error after last commit

Hans Goudey noreply at git.blender.org
Mon Mar 1 22:45:12 CET 2021


Commit: 8f2c3c63e970a419fbb2684759893ae17cbc2ea7
Author: Hans Goudey
Date:   Mon Mar 1 15:45:06 2021 -0600
Branches: master
https://developer.blender.org/rB8f2c3c63e970a419fbb2684759893ae17cbc2ea7

Fix build error after last commit

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

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

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

diff --git a/source/blender/blenkernel/intern/node_ui_storage.cc b/source/blender/blenkernel/intern/node_ui_storage.cc
index d3473eedae0..397f54ea7e1 100644
--- a/source/blender/blenkernel/intern/node_ui_storage.cc
+++ b/source/blender/blenkernel/intern/node_ui_storage.cc
@@ -33,7 +33,7 @@ using blender::Map;
 using blender::StringRef;
 using blender::Vector;
 
-NodeTreeUIStorage &ui_storage_ensure(bNodeTree &ntree)
+static void ui_storage_ensure(bNodeTree &ntree)
 {
   if (ntree.ui_storage == nullptr) {
     ntree.ui_storage = new NodeTreeUIStorage();
@@ -113,7 +113,8 @@ static NodeUIStorage &node_ui_storage_ensure(bNodeTree &ntree,
                                              const NodeTreeEvaluationContext &context,
                                              const bNode &node)
 {
-  NodeTreeUIStorage &ui_storage = ui_storage_ensure(ntree);
+  ui_storage_ensure(ntree);
+  NodeTreeUIStorage &ui_storage = *ntree.ui_storage;
 
   Map<std::string, NodeUIStorage> &node_tree_ui_storage =
       ui_storage.context_map.lookup_or_add_default(context);



More information about the Bf-blender-cvs mailing list