Skip to content

Commit

Permalink
Merge pull request #91732 from Naputt1/fix-2d-editor-selection
Browse files Browse the repository at this point in the history
Fix 2d editor selection persisting after application loses focus.
  • Loading branch information
akien-mga committed May 10, 2024
2 parents e6780b5 + 9e196b7 commit 84f6a3d
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions editor/plugins/canvas_item_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

Expand Down

0 comments on commit 84f6a3d

Please sign in to comment.