Fix NavigationServer.set_debug_enabled() doing nothing

Fixes NavigationServer.set_debug_enabled() doing nothing because it was not updated for newer dirty flags.
This commit is contained in:
smix8 2024-04-04 13:47:06 +02:00
parent f47f4a02c8
commit 282d772f1b
1 changed files with 4 additions and 0 deletions

View File

@ -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
}