From c394ea518e48bbce710b251cf20be078505ef8d7 Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Fri, 1 Jul 2022 18:58:03 +0200 Subject: Add more detailed Navigation Debug Visualization - Adds more customization options to ProjectSettings. - Displays navregion edge connections and navigation polygon edges in editor and at runtime. - Majority of debug code moved from SceneTree to NavigationServer. - Removes the irritating debug MeshInstance child node from NavigationRegion3D and replaces it with direct RenderingServer API. --- main/main.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main') diff --git a/main/main.cpp b/main/main.cpp index 00b7483406..c04351f723 100644 --- a/main/main.cpp +++ b/main/main.cpp @@ -2389,6 +2389,8 @@ bool Main::start() { } if (debug_navigation) { sml->set_debug_navigation_hint(true); + NavigationServer3D::get_singleton()->set_active(true); + NavigationServer3D::get_singleton_mut()->set_debug_enabled(true); } #endif -- cgit v1.2.3