diff options
author | Brecht Van Lommel <brecht@blender.org> | 2022-05-12 21:41:34 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2022-05-12 23:58:27 +0300 |
commit | c0df1cd1b31bbc18f85db8e75f63ba4a6472152f (patch) | |
tree | 95e6a06cce5c5b541047847445f00f77643af767 /source/blender/blenkernel | |
parent | 1159b63a07fd2cbc7fc48e162d57721c9c85b3f6 (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')
-rw-r--r-- | source/blender/blenkernel/intern/image_save.cc | 1 |
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); |