Fix standalone image output not working when not running in background mode

Differential Revision: https://developer.blender.org/D14471
This commit is contained in:
howetuft 2022-04-04 14:16:00 +02:00 committed by Brecht Van Lommel
parent 013d0631e6
commit fcf06d2ad7
1 changed files with 2 additions and 2 deletions

View File

@ -121,9 +121,9 @@ static void session_init()
options.session->set_display_driver(make_unique<OpenGLDisplayDriver>(
window_opengl_context_enable, window_opengl_context_disable));
}
else
#endif
if (!options.output_filepath.empty()) {
if (!options.output_filepath.empty()) {
options.session->set_output_driver(make_unique<OIIOOutputDriver>(
options.output_filepath, options.output_pass, session_print));
}