[Bf-blender-cvs] [c9f7a994670] temp-geometry-nodes-attribute-search: Attribute Search: Use attribute names from UI storage

Hans Goudey noreply at git.blender.org
Tue Feb 23 22:58:52 CET 2021


Commit: c9f7a994670abd6dbc12630be4d68b296519debc
Author: Hans Goudey
Date:   Tue Feb 23 15:57:53 2021 -0600
Branches: temp-geometry-nodes-attribute-search
https://developer.blender.org/rBc9f7a994670abd6dbc12630be4d68b296519debc

Attribute Search: Use attribute names from UI storage

For now, this means that only nodes with error messages will have
an interactive list of attribute names, and it's still the dummy data.

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

M	source/blender/editors/space_node/node_geometry_attribute_search.cc

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

diff --git a/source/blender/editors/space_node/node_geometry_attribute_search.cc b/source/blender/editors/space_node/node_geometry_attribute_search.cc
index 210ccf81b8b..cff936c1bf5 100644
--- a/source/blender/editors/space_node/node_geometry_attribute_search.cc
+++ b/source/blender/editors/space_node/node_geometry_attribute_search.cc
@@ -87,11 +87,10 @@ static void attribute_search_update_fn(const bContext *C,
   const NodeUIStorage *ui_storage = node_ui_storage_get_from_context(
       C, data->node_tree, data->node);
   if (ui_storage == nullptr) {
-    // return;
+    return;
   }
 
-  // const Set<std::string> &attribute_name_hints = ui_storage->attribute_name_hints;
-  const Set<std::string> attribute_name_hints = {"HELLO!", "DOES", "THIS", "WORK???"};
+  const Set<std::string> &attribute_name_hints = ui_storage->attribute_name_hints;
 
   StringSearch *search = BLI_string_search_new();
   for (const std::string &attribute_name : attribute_name_hints) {



More information about the Bf-blender-cvs mailing list