Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans Goudey <h.goudey@me.com>2022-09-21 23:04:16 +0300
committerHans Goudey <h.goudey@me.com>2022-09-22 01:12:53 +0300
commit77dcfac8a38d81b3ed6dd5b6c85f80a31ecc562b (patch)
treeb1fa78a3b14f57238bf6ebbd70f4ba18e00cc337 /source/blender/editors/space_node
parent3676d6b88d0ab1aba140f533b83e7f05037b0a14 (diff)
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.
Diffstat (limited to 'source/blender/editors/space_node')
-rw-r--r--source/blender/editors/space_node/add_node_search.cc2
1 files changed, 1 insertions, 1 deletions
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;