Skip to content

Commit

Permalink
Fix selection stuck after saving scene
Browse files Browse the repository at this point in the history
  • Loading branch information
Hilderin committed Sep 4, 2024
1 parent b6223c0 commit 613d4d1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion editor/plugins/canvas_item_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
3 changes: 3 additions & 0 deletions editor/plugins/node_3d_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3077,8 +3077,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: {
Expand Down

0 comments on commit 613d4d1

Please sign in to comment.