summaryrefslogtreecommitdiffstats
path: root/scene/resources/world_3d.cpp
diff options
context:
space:
mode:
authorsmix8 <52464204+smix8@users.noreply.github.com>2023-04-01 01:49:43 +0200
committersmix8 <52464204+smix8@users.noreply.github.com>2023-05-11 18:46:34 +0200
commitf986b52b3cc107374d4e74774c8695a0f1282e11 (patch)
tree4f7382431f7b58e133528f02ea1d139851cc588e /scene/resources/world_3d.cpp
parentfd4a06c51555904104b18494d0224f450d74fe2a (diff)
downloadredot-engine-f986b52b3cc107374d4e74774c8695a0f1282e11.tar.gz
Make navigation mesh edge connections optional
Makes navigation mesh edge connections optional.
Diffstat (limited to 'scene/resources/world_3d.cpp')
-rw-r--r--scene/resources/world_3d.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/resources/world_3d.cpp b/scene/resources/world_3d.cpp
index 82c056d5ee..cc961941cf 100644
--- a/scene/resources/world_3d.cpp
+++ b/scene/resources/world_3d.cpp
@@ -67,6 +67,7 @@ RID World3D::get_navigation_map() const {
navigation_map = NavigationServer3D::get_singleton()->map_create();
NavigationServer3D::get_singleton()->map_set_active(navigation_map, true);
NavigationServer3D::get_singleton()->map_set_cell_size(navigation_map, GLOBAL_GET("navigation/3d/default_cell_size"));
+ NavigationServer3D::get_singleton()->map_set_use_edge_connections(navigation_map, GLOBAL_GET("navigation/3d/use_edge_connections"));
NavigationServer3D::get_singleton()->map_set_edge_connection_margin(navigation_map, GLOBAL_GET("navigation/3d/default_edge_connection_margin"));
NavigationServer3D::get_singleton()->map_set_link_connection_radius(navigation_map, GLOBAL_GET("navigation/3d/default_link_connection_radius"));
}