Fix selection stuck after saving scene
(cherry picked from commit 613d4d10cb)
This commit is contained in:
committed by
Rémi Verschelde
parent
2635ff777e
commit
d842870331
@ -4108,7 +4108,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();
|
||||
|
||||
@ -3049,8 +3049,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: {
|
||||
|
||||
Reference in New Issue
Block a user