Caching generated image leads to infinite loop in preview render #53

Merged
Bogdan Nagirniak merged 12 commits from BLEN-409 into hydra-render 2023-06-13 18:39:39 +02:00
Showing only changes of commit 7a66d7c266 - Show all commits

View File

@ -28,7 +28,7 @@ std::string cache_image_file(
char file_name[32];
const char *r_ext[BKE_IMAGE_PATH_EXT_MAX];
snprintf(file_name, sizeof(file_name), "img_%016llx", (uintptr_t)image);
BKE_image_path_ext_from_imtype(opts.im_format.imtype, r_ext);
BKE_image_path_ext_from_imformat(&scene->r.im_format, r_ext);
int len = strlen(file_name);
STR_CONCAT(file_name, len, *r_ext);