Merge pull request #1502 from Areloch/NoAutosaveEditorLevels

We don't want to be generating autosaves of the default and template levels as that can just cause weirdness.
This commit is contained in:
Brian Roberts 2025-06-15 10:52:21 -05:00 committed by GitHub
commit b19215a6a7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -455,6 +455,10 @@ function EditorAutoSaveMission()
AssetBackupListArray.empty();
%scenePath = makeFullPath(getRootScene().getFileName());
if(startsWith(%scenePath, "tools/levels/")
return false;
//Next, we figure out what all we're planning to save
%terrainObjects = getRootScene().getObjectsByClass("TerrainBlock", false);
for(%i=0; %i < getWordCount(%terrainObjects); %i++)