Browse Source

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

Default to background navmesh builds
Daniel Buckmaster 10 years ago
parent
commit
bd6c331dfc

+ 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();  
 }