forked from blender/blender
Fix review comments #51
@ -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))
|
||||
{
|
||||
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));
|
||||
};
|
||||
}
|
||||
}
|
||||
BKE_image_save_options_free(&opts);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user