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:
Philipp Oeser 2020-02-26 15:55:30 +01:00
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
1 changed files with 8 additions and 0 deletions

View File

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