diff options
author | Jacques Lucke <jacques@blender.org> | 2021-03-17 13:15:39 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2021-03-17 13:15:39 +0300 |
commit | e00a47ffd611b0ab06dba2a4933ab15871d576e6 (patch) | |
tree | d7f17f17ddae14e943b1f10cc1a0c3e9aab847ae /source/blender/modifiers/intern/MOD_nodes.cc | |
parent | e91dd645a94d63c62c8a63d0da0ba145f48da289 (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/intern/MOD_nodes.cc')
-rw-r--r-- | source/blender/modifiers/intern/MOD_nodes.cc | 10 |
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; }); } |