From b878f5cfa385322bd2270272d31c0bc3520397dd Mon Sep 17 00:00:00 2001 From: Pierre-Thomas Meisels Date: Sat, 3 Aug 2024 18:25:24 +0200 Subject: [PATCH] fix: disable live update for editor (#237) --- 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; }