Skip to content

Commit

Permalink
Merge pull request #90200 from smix8/debug_enabled
Browse files Browse the repository at this point in the history
Fix `NavigationServer.set_debug_enabled()` doing nothing
  • Loading branch information
akien-mga committed Apr 4, 2024
2 parents 82dd9b9 + 282d772 commit 7a42afb
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 7a42afb

Please sign in to comment.