summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2024-04-04 14:37:35 +0200
committerRémi Verschelde <rverschelde@gmail.com>2024-04-04 14:37:35 +0200
commit7a42afbba050822a66ea5b4c620f6db1b98c49af (patch)
treed6f743d43a4e46165b453ebdb3dfaefe2eea2fe3
parent82dd9b99162feecc0b8e2844a03858e915569748 (diff)
parent282d772f1bedebbeacab30da7fb87302d1599104 (diff)
downloadredot-engine-7a42afbba050822a66ea5b4c620f6db1b98c49af.tar.gz
Merge pull request #90200 from smix8/debug_enabled
Fix `NavigationServer.set_debug_enabled()` doing nothing
-rw-r--r--servers/navigation_server_3d.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/servers/navigation_server_3d.cpp b/servers/navigation_server_3d.cpp
index c12659fe7a..e460bcb9c6 100644
--- a/servers/navigation_server_3d.cpp
+++ b/servers/navigation_server_3d.cpp
@@ -294,7 +294,11 @@ void NavigationServer3D::set_debug_enabled(bool p_enabled) {
debug_enabled = p_enabled;
if (debug_dirty) {
+ navigation_debug_dirty = true;
callable_mp(this, &NavigationServer3D::_emit_navigation_debug_changed_signal).call_deferred();
+
+ avoidance_debug_dirty = true;
+ callable_mp(this, &NavigationServer3D::_emit_avoidance_debug_changed_signal).call_deferred();
}
#endif // DEBUG_ENABLED
}