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.
This commit is contained in:
Hans Goudey 2022-09-08 10:57:21 -05:00 committed by Philipp Oeser
parent faccd88038
commit 568265964e
Notes: blender-bot 2023-02-14 03:52:45 +01:00
Referenced by issue #100749, Blender LTS: Maintenance Task 3.3
1 changed files with 2 additions and 2 deletions

View File

@ -246,8 +246,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);