Fix review comments #51

Merged
Bogdan Nagirniak merged 15 commits from BLEN-430 into hydra-render 2023-06-08 18:10:55 +02:00
Showing only changes of commit d8f2587fcb - Show all commits

View File

@ -38,9 +38,12 @@ static std::string cache_image_file(Image *image,
if (BKE_image_save_options_init(&opts, main, scene_delegate->scene, image, iuser, false, false)) if (BKE_image_save_options_init(&opts, main, scene_delegate->scene, image, iuser, false, false))
{ {
STRNCPY(opts.filepath, file_path); STRNCPY(opts.filepath, file_path);
if (!BKE_image_save(nullptr, main, image, iuser, &opts)) { if (BKE_image_save(nullptr, main, image, iuser, &opts)) {
CLOG_INFO(LOG_RENDER_HYDRA_SCENE, 1, "%s -> %s", image->id.name, file_path);
}
else {
memset(file_path, 0, sizeof(file_path)); memset(file_path, 0, sizeof(file_path));
}; }
} }
BKE_image_save_options_free(&opts); BKE_image_save_options_free(&opts);