diff options
author | Hans Goudey <h.goudey@me.com> | 2021-03-02 00:45:06 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-03-02 00:45:06 +0300 |
commit | 8f2c3c63e970a419fbb2684759893ae17cbc2ea7 (patch) | |
tree | e1b20cf39812ad43b2310e67ef163f4510438fcf /source | |
parent | 3084f6a8e0ee65af624fd57bd7f7f15472dc68e6 (diff) |
Fix build error after last commit
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/blenkernel/intern/node_ui_storage.cc | 5 |
1 files changed, 3 insertions, 2 deletions
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); |