forked from blender/blender
Caching generated image leads to infinite loop in preview render #53
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user