Skip to content

Commit 613d4d1

Browse files
committed
Fix selection stuck after saving scene
1 parent b6223c0 commit 613d4d1

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

editor/plugins/canvas_item_editor_plugin.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4120,7 +4120,8 @@ void CanvasItemEditor::_notification(int p_what) {
41204120
}
41214121
} break;
41224122

4123-
case NOTIFICATION_APPLICATION_FOCUS_OUT: {
4123+
case NOTIFICATION_APPLICATION_FOCUS_OUT:
4124+
case NOTIFICATION_WM_WINDOW_FOCUS_OUT: {
41244125
if (drag_type != DRAG_NONE) {
41254126
_reset_drag();
41264127
viewport->queue_redraw();

editor/plugins/node_3d_editor_plugin.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3077,8 +3077,11 @@ void Node3DEditorViewport::_notification(int p_what) {
30773077
update_preview_node = false;
30783078
} break;
30793079

3080+
case NOTIFICATION_APPLICATION_FOCUS_OUT:
30803081
case NOTIFICATION_WM_WINDOW_FOCUS_OUT: {
30813082
set_freelook_active(false);
3083+
cursor.region_select = false;
3084+
surface->queue_redraw();
30823085
} break;
30833086

30843087
case NOTIFICATION_ENTER_TREE: {

0 commit comments

Comments
 (0)