[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [51806] trunk/blender/source/blender/ blenkernel/intern/curve.c: Bugreport - Christian Krupa in irc:
Ton Roosendaal
ton at blender.org
Thu Nov 1 14:00:31 CET 2012
Revision: 51806
http://projects.blender.org/scm/viewvc.php?view=rev&root=bf-blender&revision=51806
Author: ton
Date: 2012-11-01 13:00:24 +0000 (Thu, 01 Nov 2012)
Log Message:
-----------
Bugreport - Christian Krupa in irc:
Curves behaved totally bad suddenly. Caused by Campbell code cleanup, replacing
this:
/* this is for float inaccuracy */
if (t < knots[0])
t = knots[0];
else if (t > knots[opp2])
t = knots[opp2];
with:
t = (t < knots[0]) ? knots[0] : knots[opp2];
Tss!
Modified Paths:
--------------
trunk/blender/source/blender/blenkernel/intern/curve.c
Modified: trunk/blender/source/blender/blenkernel/intern/curve.c
===================================================================
--- trunk/blender/source/blender/blenkernel/intern/curve.c 2012-11-01 09:56:18 UTC (rev 51805)
+++ trunk/blender/source/blender/blenkernel/intern/curve.c 2012-11-01 13:00:24 UTC (rev 51806)
@@ -818,7 +818,10 @@
opp2 = orderpluspnts - 1;
/* this is for float inaccuracy */
- t = (t < knots[0]) ? knots[0] : knots[opp2];
+ if (t < knots[0])
+ t = knots[0];
+ else if (t > knots[opp2])
+ t = knots[opp2];
/* this part is order '1' */
o2 = order + 1;
More information about the Bf-blender-cvs
mailing list