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:
2014-05-22 11:58:07 +10:00
parent 90db85a263
commit 049b6cfa6d
7 changed files with 66 additions and 53 deletions

View File

@@ -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);