Merge pull request #96579 from Hilderin/fix-selection-stuck-after-saving-scene
Fix selection stuck after saving scene
This commit is contained in:
commit
721852b325
@ -4120,7 +4120,8 @@ void CanvasItemEditor::_notification(int p_what) {
|
|||||||
}
|
}
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case NOTIFICATION_APPLICATION_FOCUS_OUT: {
|
case NOTIFICATION_APPLICATION_FOCUS_OUT:
|
||||||
|
case NOTIFICATION_WM_WINDOW_FOCUS_OUT: {
|
||||||
if (drag_type != DRAG_NONE) {
|
if (drag_type != DRAG_NONE) {
|
||||||
_reset_drag();
|
_reset_drag();
|
||||||
viewport->queue_redraw();
|
viewport->queue_redraw();
|
||||||
|
@ -3092,8 +3092,11 @@ void Node3DEditorViewport::_notification(int p_what) {
|
|||||||
update_preview_node = false;
|
update_preview_node = false;
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
|
case NOTIFICATION_APPLICATION_FOCUS_OUT:
|
||||||
case NOTIFICATION_WM_WINDOW_FOCUS_OUT: {
|
case NOTIFICATION_WM_WINDOW_FOCUS_OUT: {
|
||||||
set_freelook_active(false);
|
set_freelook_active(false);
|
||||||
|
cursor.region_select = false;
|
||||||
|
surface->queue_redraw();
|
||||||
} break;
|
} break;
|
||||||
|
|
||||||
case NOTIFICATION_ENTER_TREE: {
|
case NOTIFICATION_ENTER_TREE: {
|
||||||
|
Loading…
Reference in New Issue
Block a user