diff --git a/apps/launcher/datafilespage.cpp b/apps/launcher/datafilespage.cpp index e8b61cb079..d86c9b15b6 100644 --- a/apps/launcher/datafilespage.cpp +++ b/apps/launcher/datafilespage.cpp @@ -493,7 +493,11 @@ void Launcher::DataFilesPage::startNavMeshTool() mNavMeshToolProgress = NavMeshToolProgress {}; - if (!mNavMeshToolInvoker->startProcess(QLatin1String("openmw-navmeshtool"), QStringList({"--write-binary-log"}))) + QStringList arguments({"--write-binary-log"}); + if (ui.navMeshRemoveUnusedTilesCheckBox->checkState() == Qt::Checked) + arguments.append("--remove-unused-tiles"); + + if (!mNavMeshToolInvoker->startProcess(QLatin1String("openmw-navmeshtool"), arguments)) return; ui.cancelNavMeshButton->setEnabled(true); diff --git a/files/ui/datafilespage.ui b/files/ui/datafilespage.ui index ff330391d2..5d04ab1ed8 100644 --- a/files/ui/datafilespage.ui +++ b/files/ui/datafilespage.ui @@ -74,6 +74,16 @@ + + + + Remove unused tiles + + + true + + +