mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-09 20:17:54 +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 {};
|
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;
|
return;
|
||||||
|
|
||||||
ui.cancelNavMeshButton->setEnabled(true);
|
ui.cancelNavMeshButton->setEnabled(true);
|
||||||
|
|
|
@ -74,6 +74,16 @@
|
||||||
</item>
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</item>
|
</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>
|
<item>
|
||||||
<widget class="QPlainTextEdit" name="navMeshLogPlainTextEdit">
|
<widget class="QPlainTextEdit" name="navMeshLogPlainTextEdit">
|
||||||
<property name="enabled">
|
<property name="enabled">
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue