Merge pull request #91001 from lawnjelly/fix_editor_view_enum

[3.x] Fix `spatial_editor_plugin` enum
This commit is contained in:
Rémi Verschelde 2024-04-22 11:35:01 +02:00 committed by GitHub
commit 3f1caf6640
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -184,6 +184,10 @@ class SpatialEditorViewport : public Control {
friend class SpatialEditor; friend class SpatialEditor;
friend class ViewportNavigationControl; friend class ViewportNavigationControl;
friend class ViewportRotationControl; friend class ViewportRotationControl;
// These values are serialized, so if adding new values
// add to the bottom to preserve compatibility between
// editor versions.
enum { enum {
VIEW_TOP, VIEW_TOP,
@ -204,7 +208,6 @@ class SpatialEditorViewport : public Control {
VIEW_AUDIO_DOPPLER, VIEW_AUDIO_DOPPLER,
VIEW_GIZMOS, VIEW_GIZMOS,
VIEW_INFORMATION, VIEW_INFORMATION,
VIEW_SELECTED_INFO,
VIEW_FPS, VIEW_FPS,
VIEW_DISPLAY_NORMAL, VIEW_DISPLAY_NORMAL,
VIEW_DISPLAY_WIREFRAME, VIEW_DISPLAY_WIREFRAME,
@ -214,6 +217,7 @@ class SpatialEditorViewport : public Control {
VIEW_CINEMATIC_PREVIEW, VIEW_CINEMATIC_PREVIEW,
VIEW_AUTO_ORTHOGONAL, VIEW_AUTO_ORTHOGONAL,
VIEW_PORTAL_CULLING, VIEW_PORTAL_CULLING,
VIEW_SELECTED_INFO,
}; };
enum ViewType { enum ViewType {