Skip to content

Commit

Permalink
UPBGE: Fix image tile animation.
Browse files Browse the repository at this point in the history
Previously the Image::lastupdate was to nan after the convertion and
caused the test in GPU_update_image_time to be discarded.
To fix this issue at read time in the function blo_end_image_pointer_map
lastupdate is set to 0.0f.

Bug reported by Spoopy and still in BFBGE.
  • Loading branch information
panzergame committed Jul 24, 2017
1 parent 16042d6 commit 3b9afe5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions source/blender/blenloader/intern/readfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -1656,6 +1656,7 @@ void blo_end_image_pointer_map(FileData *fd, Main *oldmain)
}

for (; ima; ima = ima->id.next) {
ima->lastupdate = 0.0f;
ima->cache = newimaadr(fd, ima->cache);
if (ima->cache == NULL) {
ima->tpageflag &= ~IMA_GLBIND_IS_DATA;
Expand Down

0 comments on commit 3b9afe5

Please sign in to comment.