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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user