diff options
Diffstat (limited to 'source/blender')
-rw-r--r-- | source/blender/editors/space_node/node_add.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/node_add.cc b/source/blender/editors/space_node/node_add.cc index 0d498d07aff..02684d92eaf 100644 --- a/source/blender/editors/space_node/node_add.cc +++ b/source/blender/editors/space_node/node_add.cc @@ -211,6 +211,13 @@ static bNodeSocketLink *add_reroute_do_socket_section(bContext *C, reroute_node->locx = insert_point[0] / UI_DPI_FAC; reroute_node->locy = insert_point[1] / UI_DPI_FAC; + + LISTBASE_FOREACH_BACKWARD (bNode *, frame_node, &ntree->nodes) { + if (frame_node->type == NODE_FRAME && BLI_rctf_isect_pt_v(&frame_node->totr, insert_point)) { + nodeAttachNode(reroute_node, frame_node); + break; + } + } } return socklink; |