From 282d772f1bedebbeacab30da7fb87302d1599104 Mon Sep 17 00:00:00 2001 From: smix8 <52464204+smix8@users.noreply.github.com> Date: Thu, 4 Apr 2024 13:47:06 +0200 Subject: [PATCH] Fix NavigationServer.set_debug_enabled() doing nothing Fixes NavigationServer.set_debug_enabled() doing nothing because it was not updated for newer dirty flags. --- servers/navigation_server_3d.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/servers/navigation_server_3d.cpp b/servers/navigation_server_3d.cpp index c12659fe7a4..e460bcb9c6b 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 }