From 2b4d3e69dec17b01fac9accf0f8bda90dfbb9f83 Mon Sep 17 00:00:00 2001 From: Relintai Date: Fri, 9 Jun 2023 09:12:30 +0200 Subject: [PATCH] Fix non tools build. --- servers/navigation_server.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/servers/navigation_server.cpp b/servers/navigation_server.cpp index 33ecda260..8da8c79a5 100644 --- a/servers/navigation_server.cpp +++ b/servers/navigation_server.cpp @@ -185,6 +185,7 @@ NavigationServer::~NavigationServer() { } void NavigationServer::set_debug_enabled(bool p_enabled) { +#ifdef DEBUG_ENABLED if (_debug_enabled != p_enabled) { _debug_dirty = true; } @@ -194,10 +195,15 @@ void NavigationServer::set_debug_enabled(bool p_enabled) { if (_debug_dirty) { call_deferred("_emit_navigation_debug_changed_signal"); } +#endif } bool NavigationServer::get_debug_enabled() const { +#ifdef DEBUG_ENABLED return _debug_enabled; +#else + return false; +#endif } #ifdef DEBUG_ENABLED