Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2021-02-24 02:15:03 +0300
committerHans Goudey <h.goudey@me.com>2021-02-24 02:15:03 +0300
commitb2c7ea6d82c453cfa35bf754e07dbbf08ae0a018 (patch)
tree7ff8fdb445087a30e130850a3ba197a035980620 /source/blender/blenkernel/BKE_node_ui_storage.hh
parentdde7d4417a850222c2e05bd6fc8f6c354f2515e9 (diff)
Geometry Nodes: Move node UI storage function to BKE
This function will be used in another file with attribute search, so it makes sense to share from the UI storage header.
Diffstat (limited to 'source/blender/blenkernel/BKE_node_ui_storage.hh')
-rw-r--r--source/blender/blenkernel/BKE_node_ui_storage.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_node_ui_storage.hh b/source/blender/blenkernel/BKE_node_ui_storage.hh
index 2084382aac5..951c3bdc62d 100644
--- a/source/blender/blenkernel/BKE_node_ui_storage.hh
+++ b/source/blender/blenkernel/BKE_node_ui_storage.hh
@@ -28,6 +28,7 @@ struct ModifierData;
struct Object;
struct bNode;
struct bNodeTree;
+struct bContext;
/**
* Contains the context necessary to determine when to display settings for a certain node tree
@@ -81,6 +82,10 @@ struct NodeTreeUIStorage {
blender::Map<NodeTreeEvaluationContext, blender::Map<std::string, NodeUIStorage>> context_map;
};
+const NodeUIStorage *BKE_node_tree_ui_storage_get_from_context(const bContext *C,
+ const bNodeTree &ntree,
+ const bNode &node);
+
void BKE_nodetree_ui_storage_free_for_context(bNodeTree &ntree,
const NodeTreeEvaluationContext &context);