[Bf-blender-cvs] [ef6e03c8e09] master: Fix: Show "new" attribute name typed in nodes modifier input search

Hans Goudey noreply at git.blender.org
Wed Oct 27 15:43:37 CEST 2021


Commit: ef6e03c8e094ec14870f0a7c228609deadbfa392
Author: Hans Goudey
Date:   Wed Oct 27 08:43:31 2021 -0500
Branches: master
https://developer.blender.org/rBef6e03c8e094ec14870f0a7c228609deadbfa392

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.

===================================================================

M	source/blender/editors/interface/interface_template_attribute_search.cc

===================================================================

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



More information about the Bf-blender-cvs mailing list