Fix T100521: Nodes added with link drag search not added to frame
Use macro NODE_OT_translate_attach for attaching node created through link-drag-search to frame, as suggested by Leon Schittek (@lone_noel) in D15888. Differential Revision: https://developer.blender.org/D15920
This commit is contained in:
@@ -227,7 +227,7 @@ static void link_drag_search_exec_fn(bContext *C, void *arg1, void *arg2)
|
||||
ED_node_tree_propagate_change(C, &bmain, snode.edittree);
|
||||
|
||||
/* Start translation operator with the new node. */
|
||||
wmOperatorType *ot = WM_operatortype_find("TRANSFORM_OT_translate", true);
|
||||
wmOperatorType *ot = WM_operatortype_find("NODE_OT_translate_attach", true);
|
||||
BLI_assert(ot);
|
||||
PointerRNA ptr;
|
||||
WM_operator_properties_create_ptr(&ptr, ot);
|
||||
|
Reference in New Issue
Block a user