Fix T100106: image movie/sequence auto refresh affects still image performance
This commit is contained in:
parent
10c4734978
commit
f6ca44efd6
Notes:
blender-bot
2023-02-14 09:21:21 +01:00
Referenced by issue #100106, Two identical texture file nodes, but drastically different playback performance on Cycles
|
@ -4937,10 +4937,12 @@ static void image_editors_update_frame(Image *ima,
|
|||
ImageUser *iuser,
|
||||
void *customdata)
|
||||
{
|
||||
int cfra = *(int *)customdata;
|
||||
if (ima && BKE_image_is_animated(ima)) {
|
||||
if ((iuser->flag & IMA_ANIM_ALWAYS) || (iuser->flag & IMA_NEED_FRAME_RECALC)) {
|
||||
int cfra = *(int *)customdata;
|
||||
|
||||
if ((iuser->flag & IMA_ANIM_ALWAYS) || (iuser->flag & IMA_NEED_FRAME_RECALC)) {
|
||||
BKE_image_user_frame_calc(ima, iuser, cfra);
|
||||
BKE_image_user_frame_calc(ima, iuser, cfra);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue