Same as previous commit, but for 'segment tangent' instead of 'bline tangent'. Selec...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 4 Mar 2008 14:18:23 +0000 (14:18 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 4 Mar 2008 14:18:23 +0000 (14:18 +0000)
git-svn-id: http://svn.voria.com/code@1855 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/valuenode_segcalctangent.cpp

index ab3f454..8d57261 100644 (file)
@@ -82,7 +82,7 @@ ValueNode_SegCalcTangent::operator()(Time t)const
        Segment segment((*segment_)(t).get(Segment()));
 
        etl::hermite<Vector> curve(segment.p1,segment.p2,segment.t1,segment.t2);
-       etl::derivative< etl::hermite<Vector> > deriv(curve);
+       etl::derivative< etl::hermite<Vector> > deriv(curve, 0.0001);
 
        return deriv((*amount_)(t).get(Real()))*(0.5);
 }