Fix: Use correct node group for add node search

Similar to e5a7470638, 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.
This commit is contained in:
Hans Goudey 2022-09-21 15:04:16 -05:00
parent 3676d6b88d
commit 77dcfac8a3
1 changed files with 1 additions and 1 deletions

View File

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