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 18:44:07 +0300
committerBrecht Van Lommel <brecht@blender.org>2022-05-12 23:58:27 +0300
commit1159b63a07fd2cbc7fc48e162d57721c9c85b3f6 (patch)
tree12546c653af957d545e8224d43e27a7c97ee4a82 /source/blender/blenkernel/BKE_image_save.h
parent6044c6d09bab8640864cd8cd062dcf79fa902c63 (diff)
Cleanup: move image save options init to image_save.cc
The logic here is tightly coupled to the other image saving code. Ref D14899
Diffstat (limited to 'source/blender/blenkernel/BKE_image_save.h')
-rw-r--r--source/blender/blenkernel/BKE_image_save.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/blender/blenkernel/BKE_image_save.h b/source/blender/blenkernel/BKE_image_save.h
index 052fc937af9..f5695eb11a4 100644
--- a/source/blender/blenkernel/BKE_image_save.h
+++ b/source/blender/blenkernel/BKE_image_save.h
@@ -13,10 +13,11 @@ extern "C" {
#endif
struct Image;
+struct ImageUser;
struct Main;
+struct RenderResult;
struct ReportList;
struct Scene;
-struct RenderResult;
/* Image datablock saving. */
@@ -36,9 +37,13 @@ typedef struct ImageSaveOptions {
bool do_newpath;
} ImageSaveOptions;
-void BKE_image_save_options_init(struct ImageSaveOptions *opts,
+bool BKE_image_save_options_init(ImageSaveOptions *opts,
struct Main *bmain,
- struct Scene *scene);
+ struct Scene *scene,
+ struct Image *ima,
+ struct ImageUser *iuser,
+ const bool guess_path,
+ const bool save_as_render);
void BKE_image_save_options_free(struct ImageSaveOptions *opts);
bool BKE_image_save(struct ReportList *reports,