2
0
Эх сурвалжийг харах

Merge pull request #108374 from DanielGSilva/mouse-captured-orientation

Deactivate orientation gizmo on window exit
Thaddeus Crews 1 сар өмнө
parent
commit
0279916ff2

+ 4 - 0
editor/scene/3d/node_3d_editor_plugin.cpp

@@ -317,6 +317,10 @@ void ViewportRotationControl::_notification(int p_what) {
 			focused_axis = -2;
 			focused_axis = -2;
 			queue_redraw();
 			queue_redraw();
 		} break;
 		} break;
+
+		case NOTIFICATION_WM_WINDOW_FOCUS_OUT: {
+			gizmo_activated = false;
+		} break;
 	}
 	}
 }
 }