Fix NavigationServer.set_debug_enabled() doing nothing

Fixes NavigationServer.set_debug_enabled() doing nothing because it was not updated for newer dirty flags.

(cherry picked from commit 282d772f1b)
This commit is contained in:
smix8 2024-04-04 13:47:06 +02:00 committed by Rémi Verschelde
parent c9232a3637
commit 09280edd41
No known key found for this signature in database
GPG Key ID: C3336907360768E1
1 changed files with 4 additions and 0 deletions

View File

@ -263,7 +263,11 @@ void NavigationServer3D::set_debug_enabled(bool p_enabled) {
debug_enabled = p_enabled;
if (debug_dirty) {
navigation_debug_dirty = true;
call_deferred("_emit_navigation_debug_changed_signal");
avoidance_debug_dirty = true;
call_deferred("_emit_avoidance_debug_changed_signal");
}
#endif // DEBUG_ENABLED
}