From 17c1c18372220f49022c5127cdd609d892b8188d Mon Sep 17 00:00:00 2001 From: ikpil Date: Mon, 15 Apr 2024 23:42:55 +0900 Subject: [PATCH] added "Keep Itermediate Results" flag --- src/DotRecast.Recast.Demo/UI/RcSettingsView.cs | 4 ++++ src/DotRecast.Recast.Toolset/RcNavMeshBuildSettings.cs | 3 +++ 2 files changed, 7 insertions(+) diff --git a/src/DotRecast.Recast.Demo/UI/RcSettingsView.cs b/src/DotRecast.Recast.Demo/UI/RcSettingsView.cs index 50f69c0..8ecc8c8 100644 --- a/src/DotRecast.Recast.Demo/UI/RcSettingsView.cs +++ b/src/DotRecast.Recast.Demo/UI/RcSettingsView.cs @@ -165,6 +165,10 @@ public class RcSettingsView : IRcView ImGui.SliderFloat("Sample Distance", ref settings.detailSampleDist, 0f, 16f, "%.1f"); ImGui.SliderFloat("Max Sample Error", ref settings.detailSampleMaxError, 0f, 16f, "%.1f"); ImGui.NewLine(); + + ImGui.Checkbox("Keep Itermediate Results", ref settings.keepInterResults); + ImGui.Checkbox("Build All Tiles", ref settings.buildAll); + ImGui.NewLine(); ImGui.Text("Tiling"); ImGui.Separator(); diff --git a/src/DotRecast.Recast.Toolset/RcNavMeshBuildSettings.cs b/src/DotRecast.Recast.Toolset/RcNavMeshBuildSettings.cs index e0b6906..86d9df6 100644 --- a/src/DotRecast.Recast.Toolset/RcNavMeshBuildSettings.cs +++ b/src/DotRecast.Recast.Toolset/RcNavMeshBuildSettings.cs @@ -31,5 +31,8 @@ public bool tiled = false; public int tileSize = 32; + + public bool keepInterResults = false; + public bool buildAll = true; } } \ No newline at end of file