[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [16268] branches/apricot/source/blender/ gpu/intern/gpu_draw.c: divide by zero for texture animation when start and end frames are the same
Campbell Barton
ideasman42 at gmail.com
Wed Aug 27 09:12:07 CEST 2008
Revision: 16268
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=16268
Author: campbellbarton
Date: 2008-08-27 09:12:07 +0200 (Wed, 27 Aug 2008)
Log Message:
-----------
divide by zero for texture animation when start and end frames are the same
Modified Paths:
--------------
branches/apricot/source/blender/gpu/intern/gpu_draw.c
Modified: branches/apricot/source/blender/gpu/intern/gpu_draw.c
===================================================================
--- branches/apricot/source/blender/gpu/intern/gpu_draw.c 2008-08-27 06:02:10 UTC (rev 16267)
+++ branches/apricot/source/blender/gpu/intern/gpu_draw.c 2008-08-27 07:12:07 UTC (rev 16268)
@@ -679,7 +679,7 @@
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;
More information about the Bf-blender-cvs
mailing list