diff options
author | Robert Yevdokimov <robert.yevdokimov@autStand.com> | 2024-01-12 12:49:10 -0500 |
---|---|---|
committer | Robert Yevdokimov <robert.yevdokimov@autStand.com> | 2024-02-03 18:50:33 -0500 |
commit | 7a2c386e281db72871dda33944502b7a7e7a6df9 (patch) | |
tree | 9361014f5a01442defd63c38dd5fb0fc2cafa3b7 /editor/plugins/canvas_item_editor_plugin.cpp | |
parent | 26b1fd0d842fa3c2f090ead47e8ea7cd2d6515e1 (diff) | |
download | redot-engine-7a2c386e281db72871dda33944502b7a7e7a6df9.tar.gz |
Clear drag preview nodes on `NOTIFICATION_DRAG_END`
Diffstat (limited to 'editor/plugins/canvas_item_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index f16aff555c..1eb0f783b9 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -6027,6 +6027,10 @@ void CanvasItemEditorViewport::_notification(int p_what) { case NOTIFICATION_EXIT_TREE: { disconnect("mouse_exited", callable_mp(this, &CanvasItemEditorViewport::_on_mouse_exit)); } break; + + case NOTIFICATION_DRAG_END: { + _remove_preview(); + } break; } } |