From c63125c31760b4896414cf6e8bd67234c072f9a5 Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Sat, 22 Jul 2023 13:44:10 +0200 Subject: [PATCH] Disable NavigationMesh edge_max_length property by default Disables NavigationMesh edge_max_length property by default. --- doc/classes/NavigationMesh.xml | 4 ++-- scene/resources/navigation_mesh.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/classes/NavigationMesh.xml b/doc/classes/NavigationMesh.xml index 3dcda01f761..b6f0d46ce2d 100644 --- a/doc/classes/NavigationMesh.xml +++ b/doc/classes/NavigationMesh.xml @@ -105,8 +105,8 @@ The maximum distance a simplified contour's border edges should deviate the original raw contour. - - The maximum allowed length for contour edges along the border of the mesh. + + The maximum allowed length for contour edges along the border of the mesh. A value of [code]0.0[/code] disables this feature. [b]Note:[/b] While baking, this value will be rounded up to the nearest multiple of [member cell_size]. diff --git a/scene/resources/navigation_mesh.h b/scene/resources/navigation_mesh.h index c3b8c13c053..542f583c34f 100644 --- a/scene/resources/navigation_mesh.h +++ b/scene/resources/navigation_mesh.h @@ -99,7 +99,7 @@ protected: float agent_max_slope = 45.0f; float region_min_size = 2.0f; float region_merge_size = 20.0f; - float edge_max_length = 12.0f; + float edge_max_length = 0.0f; float edge_max_error = 1.3f; float vertices_per_polygon = 6.0f; float detail_sample_distance = 6.0f;