From ef6e03c8e094ec14870f0a7c228609deadbfa392 Mon Sep 17 00:00:00 2001 From: Hans Goudey Date: Wed, 27 Oct 2021 08:43:31 -0500 Subject: 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. --- .../blender/editors/interface/interface_template_attribute_search.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'source/blender/editors') 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); } } -- cgit v1.2.3