Browse Source

Deactivate orientation gizmo on window exit

danielgsilva 2 tháng trước cách đây
mục cha
commit
1c48eb449a
1 tập tin đã thay đổi với 4 bổ sung0 xóa
  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;
 	}
 }