Skip to content

Commit 0279916

Browse files
committed
Merge pull request #108374 from DanielGSilva/mouse-captured-orientation
Deactivate orientation gizmo on window exit
2 parents 7d4b7fa + 1c48eb4 commit 0279916

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

editor/scene/3d/node_3d_editor_plugin.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,10 @@ void ViewportRotationControl::_notification(int p_what) {
317317
focused_axis = -2;
318318
queue_redraw();
319319
} break;
320+
321+
case NOTIFICATION_WM_WINDOW_FOCUS_OUT: {
322+
gizmo_activated = false;
323+
} break;
320324
}
321325
}
322326

0 commit comments

Comments
 (0)