diff options
author | Lukas Tönne <lukas.toenne@gmail.com> | 2022-07-26 00:43:48 +0300 |
---|---|---|
committer | Lukas Tönne <lukas.toenne@gmail.com> | 2022-07-26 00:43:48 +0300 |
commit | f081e76037432cb926be45e980eac201d337032c (patch) | |
tree | dd1225521c12ea21c0b0c3d51ec1ae3f8730755f /source/blender/editors/interface/interface_template_attribute_search.cc | |
parent | fa2084ae58a77b1201289b6bedac427f73c762d1 (diff) | |
parent | 462f99bf38648a08226b1fba423315aec2bc577b (diff) |
Merge branch 'master' into geometry-nodes-iterative-cachegeometry-nodes-rigid-body-integration
Diffstat (limited to 'source/blender/editors/interface/interface_template_attribute_search.cc')
-rw-r--r-- | source/blender/editors/interface/interface_template_attribute_search.cc | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/source/blender/editors/interface/interface_template_attribute_search.cc b/source/blender/editors/interface/interface_template_attribute_search.cc index 4e587bd5338..0a684903f0f 100644 --- a/source/blender/editors/interface/interface_template_attribute_search.cc +++ b/source/blender/editors/interface/interface_template_attribute_search.cc @@ -50,7 +50,7 @@ static bool attribute_search_item_add(uiSearchItems *items, const GeometryAttrib } void attribute_search_add_items(StringRefNull str, - const bool is_output, + const bool can_create_attribute, Span<const GeometryAttributeInfo *> infos, uiSearchItems *seach_items, const bool is_first) @@ -68,8 +68,12 @@ void attribute_search_add_items(StringRefNull str, } if (!contained) { dummy_info.name = str; - UI_search_item_add( - seach_items, str.c_str(), &dummy_info, is_output ? ICON_ADD : ICON_NONE, 0, 0); + UI_search_item_add(seach_items, + str.c_str(), + &dummy_info, + can_create_attribute ? ICON_ADD : ICON_NONE, + 0, + 0); } } |