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:
authorJacques Lucke <jacques@blender.org>2021-03-17 13:15:39 +0300
committerJacques Lucke <jacques@blender.org>2021-03-17 13:15:39 +0300
commite00a47ffd611b0ab06dba2a4933ab15871d576e6 (patch)
treed7f17f17ddae14e943b1f10cc1a0c3e9aab847ae /source/blender/blenkernel/intern/node_ui_storage.cc
parente91dd645a94d63c62c8a63d0da0ba145f48da289 (diff)
Geometry Nodes: store domain and data type in attribute hints
The information is not exposed in the attribute search yet.
Diffstat (limited to 'source/blender/blenkernel/intern/node_ui_storage.cc')
-rw-r--r--source/blender/blenkernel/intern/node_ui_storage.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/source/blender/blenkernel/intern/node_ui_storage.cc b/source/blender/blenkernel/intern/node_ui_storage.cc
index 97f52dd3727..f2a152ac00d 100644
--- a/source/blender/blenkernel/intern/node_ui_storage.cc
+++ b/source/blender/blenkernel/intern/node_ui_storage.cc
@@ -158,8 +158,11 @@ void BKE_nodetree_error_message_add(bNodeTree &ntree,
void BKE_nodetree_attribute_hint_add(bNodeTree &ntree,
const NodeTreeEvaluationContext &context,
const bNode &node,
- const StringRef attribute_name)
+ const StringRef attribute_name,
+ const AttributeDomain domain,
+ const CustomDataType data_type)
{
NodeUIStorage &node_ui_storage = node_ui_storage_ensure(ntree, context, node);
- node_ui_storage.attribute_name_hints.add_as(attribute_name);
+ node_ui_storage.attribute_hints.add_as(attribute_name,
+ AvailableAttributeInfo{domain, data_type});
}