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-08 18:57:21 +0300
committerHans Goudey <h.goudey@me.com>2022-09-08 18:57:21 +0300
commite5a7470638803fd0780f98d8b23052cc16ca8d7d (patch)
tree1347e571dd9e7797d142d70fc04aa70165a7456f
parentff7bba8dad5d09f8b3e53a9a31a5f5fa50099b44 (diff)
Fix: link drag search feature only works forgeometry nodes groups
The node tree used to detect if the tree was a node group wasn't the last in the node editor's path like it should be, so the search thought that all shader node groups weren't node groups.
-rw-r--r--source/blender/editors/space_node/link_drag_search.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_node/link_drag_search.cc b/source/blender/editors/space_node/link_drag_search.cc
index 553d4013324..21d5d8d7d26 100644
--- a/source/blender/editors/space_node/link_drag_search.cc
+++ b/source/blender/editors/space_node/link_drag_search.cc
@@ -247,8 +247,8 @@ static uiBlock *create_search_popup_block(bContext *C, ARegion *region, void *ar
{
LinkDragSearchStorage &storage = *(LinkDragSearchStorage *)arg_op;
- bNodeTree *node_tree = CTX_wm_space_node(C)->nodetree;
- gather_socket_link_operations(*node_tree, storage.from_socket, storage.search_link_ops);
+ bNodeTree &node_tree = *CTX_wm_space_node(C)->edittree;
+ gather_socket_link_operations(node_tree, storage.from_socket, storage.search_link_ops);
uiBlock *block = UI_block_begin(C, region, "_popup", UI_EMBOSS);
UI_block_flag_enable(block, UI_BLOCK_LOOP | UI_BLOCK_MOVEMOUSE_QUIT | UI_BLOCK_SEARCH_MENU);