Fix T46446: texture nodes image node not working with image sequences.

This commit is contained in:
Brecht Van Lommel 2015-10-12 02:41:18 +02:00 committed by Campbell Barton
parent cdc8f4d65a
commit ff01b24ecd
1 changed files with 11 additions and 0 deletions

View File

@ -2528,6 +2528,17 @@ void BKE_image_walk_all_users(const Main *mainp, void *customdata,
if (tex->type == TEX_IMAGE && tex->ima) {
callback(tex->ima, &tex->iuser, customdata);
}
if (tex->nodetree) {
bNode *node;
for (node = tex->nodetree->nodes.first; node; node = node->next) {
if (node->id && node->type == TEX_NODE_IMAGE) {
Image *ima = (Image *)node->id;
ImageUser *iuser = node->storage;
callback(ima, iuser, customdata);
}
}
}
}
/* image window, compo node users */