[Bf-blender-cvs] [77dcfac8a38] master: Fix: Use correct node group for add node search

Hans Goudey noreply at git.blender.org
Thu Sep 22 00:13:03 CEST 2022


Commit: 77dcfac8a38d81b3ed6dd5b6c85f80a31ecc562b
Author: Hans Goudey
Date:   Wed Sep 21 15:04:16 2022 -0500
Branches: master
https://developer.blender.org/rB77dcfac8a38d81b3ed6dd5b6c85f80a31ecc562b

Fix: Use correct node group for add node search

Similar to e5a7470638803fd, the tree currently being edited should be
used for polling and other tests, rather than the node tree at the root
of the node editor's path.

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

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

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

diff --git a/source/blender/editors/space_node/add_node_search.cc b/source/blender/editors/space_node/add_node_search.cc
index 7ae66e9feb7..101517b8cfb 100644
--- a/source/blender/editors/space_node/add_node_search.cc
+++ b/source/blender/editors/space_node/add_node_search.cc
@@ -160,7 +160,7 @@ static void add_node_search_update_fn(
 {
   AddNodeSearchStorage &storage = *static_cast<AddNodeSearchStorage *>(arg);
   if (storage.update_items_tag) {
-    bNodeTree *node_tree = CTX_wm_space_node(C)->nodetree;
+    bNodeTree *node_tree = CTX_wm_space_node(C)->edittree;
     storage.search_add_items.clear();
     gather_add_node_operations(*C, *node_tree, storage.search_add_items);
     storage.update_items_tag = false;



More information about the Bf-blender-cvs mailing list