diff options
author | Thomas Lachmann <TL> | 2021-06-14 14:44:18 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2021-06-14 15:20:04 +0300 |
commit | b84707df17547e45e91f242b810bd2c66c6b1771 (patch) | |
tree | 341baa6381caba7ef1bed0990984da907c964c1a /source/blender/makesrna | |
parent | ada47c47728316fb0e25830c642626aeda0693f4 (diff) |
Python API: option for render engines to disable image file saving
For some custom rendering engines it's advantageous not to write the image files to disk.
An example would be a network rendering engine which does it's own image writing.
This feature is only supported when bl_use_postprocess is also disabled, since render
engines can't influence the saving behavior of the sequencer or compositor.
Differential Revision: https://developer.blender.org/D11512
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r-- | source/blender/makesrna/intern/rna_render.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/makesrna/intern/rna_render.c b/source/blender/makesrna/intern/rna_render.c index dd91a5509f5..6715941ae2a 100644 --- a/source/blender/makesrna/intern/rna_render.c +++ b/source/blender/makesrna/intern/rna_render.c @@ -856,6 +856,15 @@ static void rna_def_render_engine(BlenderRNA *brna) "Use Custom Freestyle", "Handles freestyle rendering on its own, instead of delegating it to EEVEE"); + prop = RNA_def_property(srna, "bl_use_image_save", PROP_BOOLEAN, PROP_NONE); + RNA_def_property_boolean_negative_sdna(prop, NULL, "type->flag", RE_USE_NO_IMAGE_SAVE); + RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL); + RNA_def_property_ui_text( + prop, + "Use Image Save", + "Save images/movie to disk while rendering an animation. " + "Disabling image saving is only supported when bl_use_postprocess is also disabled"); + prop = RNA_def_property(srna, "bl_use_gpu_context", PROP_BOOLEAN, PROP_NONE); RNA_def_property_boolean_sdna(prop, NULL, "type->flag", RE_USE_GPU_CONTEXT); RNA_def_property_flag(prop, PROP_REGISTER_OPTIONAL); |