Fix for image garbage collection failing to run for render-only views
Check for freeing old images was running per-object, move this to viewport drawing.
This commit is contained in:
@@ -1132,7 +1132,9 @@ static int multitex(Tex *tex, float texvec[3], float dxt[3], float dyt[3], int o
|
||||
case TEX_IMAGE:
|
||||
if (osatex) retval = imagewraposa(tex, tex->ima, NULL, texvec, dxt, dyt, texres, pool);
|
||||
else retval = imagewrap(tex, tex->ima, NULL, texvec, texres, pool);
|
||||
BKE_image_tag_time(tex->ima); /* tag image as having being used */
|
||||
if (tex->ima) {
|
||||
BKE_image_tag_time(tex->ima);
|
||||
}
|
||||
break;
|
||||
case TEX_ENVMAP:
|
||||
retval = envmaptex(tex, texvec, dxt, dyt, osatex, texres, pool);
|
||||
|
||||
Reference in New Issue
Block a user