Fix missing scenes saving when entering play mode in full game mode

#2465
This commit is contained in:
Wojtek Figat
2024-08-28 17:14:22 +02:00
parent a1745e25a1
commit ca0fb8cf63

View File

@@ -145,6 +145,10 @@ namespace FlaxEditor.Modules
return;
}
// Save any modified scenes to prevent loosing local changes
if (Editor.Scene.IsEdited())
Level.SaveAllScenes();
// Load scenes after entering the play mode
_scenesToReload = new Guid[Level.ScenesCount];
for (int i = 0; i < _scenesToReload.Length; i++)