浏览代码

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.
Brian Roberts 2 月之前
父节点
当前提交
b19215a6a7
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      Templates/BaseGame/game/tools/worldEditor/scripts/menuHandlers.ed.tscript

+ 4 - 0
Templates/BaseGame/game/tools/worldEditor/scripts/menuHandlers.ed.tscript

@@ -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++)