diff options
author | Hans Goudey <h.goudey@me.com> | 2022-08-02 01:03:21 +0300 |
---|---|---|
committer | Hans Goudey <h.goudey@me.com> | 2022-08-02 01:03:21 +0300 |
commit | 1dc503b33abdb8504099568732822aa5c906e328 (patch) | |
tree | b837573a30185d7c25edd4df30dddea53dec8bf6 | |
parent | 2c00889d3e9d6357e6e1d1a977935c32f5ddcf32 (diff) |
Nodes: Remove node after link drag search cancel
Remove the node if the transform operation is cancelled rather than
confirmed. This is consistent with the regular search menu.
-rw-r--r-- | source/blender/editors/space_node/link_drag_search.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/editors/space_node/link_drag_search.cc b/source/blender/editors/space_node/link_drag_search.cc index c524de2c55d..9014e36c4e2 100644 --- a/source/blender/editors/space_node/link_drag_search.cc +++ b/source/blender/editors/space_node/link_drag_search.cc @@ -232,6 +232,7 @@ static void link_drag_search_exec_fn(bContext *C, void *arg1, void *arg2) PointerRNA ptr; WM_operator_properties_create_ptr(&ptr, ot); RNA_boolean_set(&ptr, "view2d_edge_pan", true); + RNA_boolean_set(&ptr, "remove_on_cancel", true); WM_operator_name_call_ptr(C, ot, WM_OP_INVOKE_DEFAULT, &ptr, nullptr); WM_operator_properties_free(&ptr); } |