Fix T74225: Image (from sequence) cannot be loaded
If the current frame was not in range, the ImageTile's 'ok' was stuck at 0. Similar to the ImageUser being reset to 'ok' in BKE_image_user_frame_calc, we now do for ImageTiles as well. note: the crasher part of T74225 was fixed in rB5c490d437743. Maniphest Tasks: T74225 Differential Revision: https://developer.blender.org/D6939
This commit is contained in:
parent
95175c3b5e
commit
9dbfc7ca8b
Notes:
blender-bot
2023-02-14 00:44:02 +01:00
Referenced by issue #74274, Blender 2.82a proposed revisions Referenced by issue #74225, Image sequence for texture wont work
|
@ -5180,6 +5180,14 @@ void BKE_image_user_frame_calc(Image *ima, ImageUser *iuser, int cfra)
|
|||
iuser->ok = 1;
|
||||
}
|
||||
|
||||
if (ima) {
|
||||
LISTBASE_FOREACH (ImageTile *, tile, &ima->tiles) {
|
||||
if (tile->ok == 0) {
|
||||
tile->ok = IMA_OK;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
iuser->flag &= ~IMA_NEED_FRAME_RECALC;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue