mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-06 07:45:36 +00: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);
|
||||
|
|
|
@ -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…
Reference in a new issue