From 0107ea5a80b7a7847910da014d40efb887153553 Mon Sep 17 00:00:00 2001 From: Pierre-Thomas Meisels Date: Fri, 2 Aug 2024 09:01:54 +0200 Subject: [PATCH] fix: disable live update for editor --- src/fmod_server.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/fmod_server.cpp b/src/fmod_server.cpp index 042da009..5f6afdf5 100644 --- a/src/fmod_server.cpp +++ b/src/fmod_server.cpp @@ -163,7 +163,12 @@ void FmodServer::init(const Ref& p_settings) { FMOD_STUDIO_INITFLAGS studio_init_flags = FMOD_STUDIO_INIT_NORMAL; - if (p_settings->get_is_live_update_enabled()) { studio_init_flags |= FMOD_STUDIO_INIT_LIVEUPDATE; } + if ( +#ifdef TOOLS_ENABLED + !Engine::get_singleton()->is_editor_hint() && +#endif + p_settings->get_is_live_update_enabled() + ) { studio_init_flags |= FMOD_STUDIO_INIT_LIVEUPDATE; } if (p_settings->get_is_memory_tracking_enabled()) { studio_init_flags |= FMOD_STUDIO_INIT_MEMORY_TRACKING; }