From 9e196b7d8ccb4b16673409012b2615d59f04e4b1 Mon Sep 17 00:00:00 2001 From: naputt Date: Wed, 8 May 2024 19:34:17 +0100 Subject: [PATCH] fix 2d editor selection --- editor/plugins/canvas_item_editor_plugin.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp index e2ef7c08ace..8f58a6a6f97 100644 --- a/editor/plugins/canvas_item_editor_plugin.cpp +++ b/editor/plugins/canvas_item_editor_plugin.cpp @@ -4073,6 +4073,13 @@ void CanvasItemEditor::_notification(int p_what) { override_camera_button->set_pressed(false); } } break; + + case NOTIFICATION_APPLICATION_FOCUS_OUT: { + if (drag_type != DRAG_NONE) { + _reset_drag(); + viewport->queue_redraw(); + } + } break; } }