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

Default to background navmesh builds
This commit is contained in:
Daniel Buckmaster 2015-03-01 17:15:42 +11:00
commit bd6c331dfc
2 changed files with 12 additions and 0 deletions

View file

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

View file

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