瀏覽代碼

Merge pull request #1215 from eightyeight/naveditor-default-background

Default to background navmesh builds
Daniel Buckmaster 10 年之前
父節點
當前提交
bd6c331dfc
共有 2 個文件被更改,包括 12 次插入0 次删除
  1. 6 0
      Templates/Empty/game/tools/navEditor/main.cs
  2. 6 0
      Templates/Full/game/tools/navEditor/main.cs

+ 6 - 0
Templates/Empty/game/tools/navEditor/main.cs

@@ -237,6 +237,12 @@ function NavEditorPlugin::readSettings(%this)
    NavEditorGui.saveIntermediates = EditorSettings.value("SaveIntermediates");
    NavEditorGui.playSoundWhenDone = EditorSettings.value("PlaySoundWhenDone");
 
+   // Build in the background by default, unless a preference has been saved.
+   if (NavEditorGui.backgroundBuild $= "")
+   {
+      NavEditorGui.backgroundBuild = true;
+   }
+
    EditorSettings.endGroup();  
 }
 

+ 6 - 0
Templates/Full/game/tools/navEditor/main.cs

@@ -237,6 +237,12 @@ function NavEditorPlugin::readSettings(%this)
    NavEditorGui.saveIntermediates = EditorSettings.value("SaveIntermediates");
    NavEditorGui.playSoundWhenDone = EditorSettings.value("PlaySoundWhenDone");
 
+   // Build in the background by default, unless a preference has been saved.
+   if (NavEditorGui.backgroundBuild $= "")
+   {
+      NavEditorGui.backgroundBuild = true;
+   }
+
    EditorSettings.endGroup();  
 }