summaryrefslogtreecommitdiffstats
path: root/editor/plugins/canvas_item_editor_plugin.cpp
diff options
context:
space:
mode:
authorRobert Yevdokimov <robert.yevdokimov@autStand.com>2024-01-12 12:49:10 -0500
committerRobert Yevdokimov <robert.yevdokimov@autStand.com>2024-02-03 18:50:33 -0500
commit7a2c386e281db72871dda33944502b7a7e7a6df9 (patch)
tree9361014f5a01442defd63c38dd5fb0fc2cafa3b7 /editor/plugins/canvas_item_editor_plugin.cpp
parent26b1fd0d842fa3c2f090ead47e8ea7cd2d6515e1 (diff)
downloadredot-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.cpp4
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;
}
}