Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brecht@blender.org>2022-05-12 21:41:34 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-05-12 23:58:27 +0300
commitc0df1cd1b31bbc18f85db8e75f63ba4a6472152f (patch)
tree95e6a06cce5c5b541047847445f00f77643af767 /source/blender/blenkernel/intern/image_save.cc
parent1159b63a07fd2cbc7fc48e162d57721c9c85b3f6 (diff)
Cleanup: remove redundant code and data copying image save as operator
Store ImageSaveOptions directly in operator custom data instead of copying to/from a copy on the stack. Ref D14899
Diffstat (limited to 'source/blender/blenkernel/intern/image_save.cc')
-rw-r--r--source/blender/blenkernel/intern/image_save.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/image_save.cc b/source/blender/blenkernel/intern/image_save.cc
index 476c9cb3a12..7b1f43168f2 100644
--- a/source/blender/blenkernel/intern/image_save.cc
+++ b/source/blender/blenkernel/intern/image_save.cc
@@ -85,6 +85,7 @@ bool BKE_image_save_options_init(ImageSaveOptions *opts,
opts->bmain = bmain;
opts->scene = scene;
+ opts->save_as_render = save_as_render;
BKE_image_format_init(&opts->im_format, false);