mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-07-15 16:44:36 +00:00
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:
commit
b19215a6a7
1 changed files with 4 additions and 0 deletions
|
|
@ -455,6 +455,10 @@ function EditorAutoSaveMission()
|
||||||
|
|
||||||
AssetBackupListArray.empty();
|
AssetBackupListArray.empty();
|
||||||
|
|
||||||
|
%scenePath = makeFullPath(getRootScene().getFileName());
|
||||||
|
if(startsWith(%scenePath, "tools/levels/")
|
||||||
|
return false;
|
||||||
|
|
||||||
//Next, we figure out what all we're planning to save
|
//Next, we figure out what all we're planning to save
|
||||||
%terrainObjects = getRootScene().getObjectsByClass("TerrainBlock", false);
|
%terrainObjects = getRootScene().getObjectsByClass("TerrainBlock", false);
|
||||||
for(%i=0; %i < getWordCount(%terrainObjects); %i++)
|
for(%i=0; %i < getWordCount(%terrainObjects); %i++)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue