Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2008-08-27 11:12:07 +0400
committerCampbell Barton <ideasman42@gmail.com>2008-08-27 11:12:07 +0400
commitb4680f5ca10ff3a818cc5607b2ca52ca5a76a210 (patch)
tree026db582e31565b0a082a6c43685a01c70d80b88 /source
parent3b8ed715b6a2b8ec93f12715016444d8a0568f6a (diff)
divide by zero for texture animation when start and end frames are the same
Diffstat (limited to 'source')
-rw-r--r--source/blender/gpu/intern/gpu_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_draw.c b/source/blender/gpu/intern/gpu_draw.c
index 8db31738005..c2575e3c6f5 100644
--- a/source/blender/gpu/intern/gpu_draw.c
+++ b/source/blender/gpu/intern/gpu_draw.c
@@ -679,7 +679,7 @@ int GPU_update_image_time(Image *ima, double time)
newframe = ima->lastframe+inc;
if(newframe > (int)ima->twend) {
- if(ima->twend-ima->twsta == 0)
+ if(ima->twend-ima->twsta != 0)
newframe = (int)ima->twsta-1 + (newframe-ima->twend)%(ima->twend-ima->twsta);
else
newframe = ima->twsta;