Skip to content

Commit

Permalink
Fix NavigationServer.set_debug_enabled() doing nothing
Browse files Browse the repository at this point in the history
Fixes NavigationServer.set_debug_enabled() doing nothing because it was not updated for newer dirty flags.
  • Loading branch information
smix8 committed Apr 4, 2024
1 parent f47f4a0 commit 282d772
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions servers/navigation_server_3d.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 282d772

Please sign in to comment.