Merge pull request #90200 from smix8/debug_enabled

Fix `NavigationServer.set_debug_enabled()` doing nothing
This commit is contained in:
Rémi Verschelde 2024-04-04 14:37:35 +02:00
commit 7a42afbba0
No known key found for this signature in database
GPG Key ID: C3336907360768E1

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
}