summaryrefslogtreecommitdiffstats
path: root/servers/navigation_server_3d.cpp
diff options
context:
space:
mode:
authorsmix8 <52464204+smix8@users.noreply.github.com>2024-04-04 13:47:06 +0200
committersmix8 <52464204+smix8@users.noreply.github.com>2024-04-04 13:47:06 +0200
commit282d772f1bedebbeacab30da7fb87302d1599104 (patch)
tree6cb38da5fb859475c859eadd4e7b68ce103443c5 /servers/navigation_server_3d.cpp
parentf47f4a02c87bb701452a621d254ad30c7be84faa (diff)
downloadredot-engine-282d772f1bedebbeacab30da7fb87302d1599104.tar.gz
Fix NavigationServer.set_debug_enabled() doing nothing
Fixes NavigationServer.set_debug_enabled() doing nothing because it was not updated for newer dirty flags.
Diffstat (limited to 'servers/navigation_server_3d.cpp')
-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
}