فهرست منبع

Deactivate orientation gizmo on window exit

danielgsilva 2 ماه پیش
والد
کامیت
1c48eb449a
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      editor/scene/3d/node_3d_editor_plugin.cpp

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

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