Core: disable audio device for bpy module & headless builds

This was missing from [0] which changed the behavior in when setting
background mode from the command line.

[0]: 7c90018f23
This commit is contained in:
Campbell Barton
2024-07-19 14:11:16 +10:00
parent 0826cb9681
commit d0b105f5fd

View File

@@ -510,6 +510,8 @@ int main(int argc,
#if defined(WITH_PYTHON_MODULE) || defined(WITH_HEADLESS)
/* Python module mode ALWAYS runs in background-mode (for now). */
G.background = true;
/* Manually using `--background` also forces the audio device. */
BKE_sound_force_device("None");
#else
if (G.background) {
main_signal_setup_background();