summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorsmix8 <52464204+smix8@users.noreply.github.com>2022-07-01 18:58:03 +0200
committersmix8 <52464204+smix8@users.noreply.github.com>2022-07-29 09:58:41 +0200
commitc394ea518e48bbce710b251cf20be078505ef8d7 (patch)
tree84098d300d6e5106b88571463157fa52c180a593 /main
parentafdae67cc381bb340da2e864279da6b836804b7f (diff)
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.
Diffstat (limited to 'main')
-rw-r--r--main/main.cpp2
1 files changed, 2 insertions, 0 deletions
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