Add check box to remove unused tiles

pull/3226/head
elsid 3 years ago
parent 1ac7eaa6b0
commit 1baee5ddba
No known key found for this signature in database
GPG Key ID: B845CB9FEE18AB40

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

@ -74,6 +74,16 @@
</item>
</layout>
</item>
<item>
<widget class="QCheckBox" name="navMeshRemoveUnusedTilesCheckBox">
<property name="text">
<string>Remove unused tiles</string>
</property>
<property name="checked">
<bool>true</bool>
</property>
</widget>
</item>
<item>
<widget class="QPlainTextEdit" name="navMeshLogPlainTextEdit">
<property name="enabled">

Loading…
Cancel
Save