Fix T46446: texture nodes image node not working with image sequences.
This commit is contained in:
parent
c2ce38b102
commit
758febba45
Notes:
blender-bot
2023-02-14 08:33:24 +01:00
Referenced by issue #46446, Image sequence in texture nodes doesn't update in animation render
|
@ -2537,6 +2537,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 */
|
||||
|
|
Loading…
Reference in New Issue