forked from blender/blender
Caching generated image leads to infinite loop in preview render #53
@ -32,11 +32,8 @@ std::string cache_image_file(
|
|||||||
|
|
||||||
int len = strlen(file_name);
|
int len = strlen(file_name);
|
||||||
STR_CONCAT(file_name, len, *r_ext);
|
STR_CONCAT(file_name, len, *r_ext);
|
||||||
BLI_path_join(file_path,
|
BLI_path_join(
|
||||||
sizeof(file_path),
|
file_path, sizeof(file_path), BKE_tempdir_session(), "hydra_image_cache", file_name);
|
||||||
BKE_tempdir_session(),
|
|
||||||
"hydra_image_cache",
|
|
||||||
file_name);
|
|
||||||
|
|
||||||
if (check_exist && BLI_exists(file_path)) {
|
if (check_exist && BLI_exists(file_path)) {
|
||||||
return file_path;
|
return file_path;
|
||||||
|
Loading…
Reference in New Issue
Block a user