From e00a47ffd611b0ab06dba2a4933ab15871d576e6 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Wed, 17 Mar 2021 11:15:39 +0100 Subject: Geometry Nodes: store domain and data type in attribute hints The information is not exposed in the attribute search yet. --- source/blender/modifiers/intern/MOD_nodes.cc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'source/blender/modifiers') 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; }); } -- cgit v1.2.3