Skip to content

Commit 1c48eb4

Browse files
committed
Deactivate orientation gizmo on window exit
1 parent 53be3b7 commit 1c48eb4

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)