summaryrefslogtreecommitdiffstats
path: root/editor
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-09-05 17:44:30 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-09-05 17:44:30 +0200
commit721852b325955123eb5ebb42f7d63719b5eb7927 (patch)
treecf813b84540af4dfa522dce5d17aee16bde31f67 /editor
parent10c8e890527213913e713de2e4787b16efe88aa7 (diff)
parent613d4d10cb0578ecba59b689ed8a24bdc55edca6 (diff)
downloadredot-engine-721852b325955123eb5ebb42f7d63719b5eb7927.tar.gz
Merge pull request #96579 from Hilderin/fix-selection-stuck-after-saving-scene
Fix selection stuck after saving scene
Diffstat (limited to 'editor')
-rw-r--r--editor/plugins/canvas_item_editor_plugin.cpp3
-rw-r--r--editor/plugins/node_3d_editor_plugin.cpp3
2 files changed, 5 insertions, 1 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.cpp b/editor/plugins/canvas_item_editor_plugin.cpp
index 6e41e98360..4b7bf1674f 100644
--- a/editor/plugins/canvas_item_editor_plugin.cpp
+++ b/editor/plugins/canvas_item_editor_plugin.cpp
@@ -4120,7 +4120,8 @@ void CanvasItemEditor::_notification(int p_what) {
}
} break;
- case NOTIFICATION_APPLICATION_FOCUS_OUT: {
+ case NOTIFICATION_APPLICATION_FOCUS_OUT:
+ case NOTIFICATION_WM_WINDOW_FOCUS_OUT: {
if (drag_type != DRAG_NONE) {
_reset_drag();
viewport->queue_redraw();
diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp
index b85b520893..7dfcb330ba 100644
--- a/editor/plugins/node_3d_editor_plugin.cpp
+++ b/editor/plugins/node_3d_editor_plugin.cpp
@@ -3092,8 +3092,11 @@ void Node3DEditorViewport::_notification(int p_what) {
update_preview_node = false;
} break;
+ case NOTIFICATION_APPLICATION_FOCUS_OUT:
case NOTIFICATION_WM_WINDOW_FOCUS_OUT: {
set_freelook_active(false);
+ cursor.region_select = false;
+ surface->queue_redraw();
} break;
case NOTIFICATION_ENTER_TREE: {