Add check box to remove unused tiles

This commit is contained in:
elsid 2022-04-07 15:54:39 +02:00
parent 1ac7eaa6b0
commit 1baee5ddba
No known key found for this signature in database
GPG key ID: B845CB9FEE18AB40
2 changed files with 15 additions and 1 deletions

View file

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