소스 검색

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;
 	}
 }