diff options
author | Hans Goudey <h.goudey@me.com> | 2021-10-27 16:43:31 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2021-10-27 16:43:31 +0300 |
commit | ef6e03c8e094ec14870f0a7c228609deadbfa392 (patch) | |
tree | 3031b5c3c4adfd367a8efe3838bef07d452030ac /source | |
parent | 059e5a8a4c49975545308fc9204edcfc671d4426 (diff) |
Fix: Show "new" attribute name typed in nodes modifier input search
Previously it wouldn't be displayed at all for inputs, now just display
it without an "add" icon.
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/editors/interface/interface_template_attribute_search.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/editors/interface/interface_template_attribute_search.cc b/source/blender/editors/interface/interface_template_attribute_search.cc index f462c0cb4cb..85a6147432b 100644 --- a/source/blender/editors/interface/interface_template_attribute_search.cc +++ b/source/blender/editors/interface/interface_template_attribute_search.cc @@ -80,9 +80,10 @@ void attribute_search_add_items(StringRefNull str, break; } } - if (!contained && is_output) { + if (!contained) { dummy_info.name = str; - UI_search_item_add(seach_items, str.c_str(), &dummy_info, ICON_ADD, 0, 0); + UI_search_item_add( + seach_items, str.c_str(), &dummy_info, is_output ? ICON_ADD : ICON_NONE, 0, 0); } } |