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/modifiers
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/modifiers')
-rw-r--r--source/blender/modifiers/intern/MOD_nodes.cc10
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/modifiers/intern/MOD_nodes.cc b/source/blender/modifiers/intern/MOD_nodes.cc
index 504dd434b1b..003002e5fac 100644
--- a/source/blender/modifiers/intern/MOD_nodes.cc
+++ b/source/blender/modifiers/intern/MOD_nodes.cc
@@ -456,9 +456,13 @@ class GeometryNodesEvaluator {
for (const GeometryComponent *component : components) {
component->attribute_foreach(
- [&](StringRefNull attribute_name, const AttributeMetaData &UNUSED(meta_data)) {
- BKE_nodetree_attribute_hint_add(
- *btree_original, context, *node->bnode(), attribute_name);
+ [&](StringRefNull attribute_name, const AttributeMetaData &meta_data) {
+ BKE_nodetree_attribute_hint_add(*btree_original,
+ context,
+ *node->bnode(),
+ attribute_name,
+ meta_data.domain,
+ meta_data.data_type);
return true;
});
}