Fix: Operator, app template and benchmarking script errors after media type

Always set the media type before the file format.

Ref #142955

Pull Request: https://projects.blender.org/blender/blender/pulls/143433
This commit is contained in:
Brecht Van Lommel
2025-07-28 11:55:11 +02:00
committed by Brecht Van Lommel
parent fa2062ee96
commit eb8dc8f535
8 changed files with 14 additions and 3 deletions

View File

@@ -24,6 +24,7 @@ def _run(args):
scene = bpy.context.scene
scene.render.engine = 'CYCLES'
scene.render.filepath = args['render_filepath']
scene.render.image_settings.media_type = 'IMAGE'
scene.render.image_settings.file_format = 'PNG'
scene.cycles.device = 'CPU' if device_type == 'CPU' else 'GPU'