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.
This commit is contained in:
Hans Goudey 2021-10-27 08:43:31 -05:00
parent 059e5a8a4c
commit ef6e03c8e0
1 changed files with 3 additions and 2 deletions

View File

@ -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);
}
}