mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-09 03:57:51 +03:00
Add check box to remove unused tiles
This commit is contained in:
parent
1ac7eaa6b0
commit
1baee5ddba
2 changed files with 15 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue