Skip to content

Commit 721852b

Browse files
committed
Merge pull request godotengine#96579 from Hilderin/fix-selection-stuck-after-saving-scene
Fix selection stuck after saving scene
2 parents 10c8e89 + 613d4d1 commit 721852b

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
@@ -3092,8 +3092,11 @@ void Node3DEditorViewport::_notification(int p_what) {
30923092
update_preview_node = false;
30933093
} break;
30943094

3095+
case NOTIFICATION_APPLICATION_FOCUS_OUT:
30953096
case NOTIFICATION_WM_WINDOW_FOCUS_OUT: {
30963097
set_freelook_active(false);
3098+
cursor.region_select = false;
3099+
surface->queue_redraw();
30973100
} break;
30983101

30993102
case NOTIFICATION_ENTER_TREE: {

0 commit comments

Comments
 (0)