From: dooglus Date: Tue, 4 Mar 2008 14:18:23 +0000 (+0000) Subject: Same as previous commit, but for 'segment tangent' instead of 'bline tangent'. Selec... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bb1dc53ed239937ec79467d2a30d5d933287f4bb;p=synfig.git Same as previous commit, but for 'segment tangent' instead of 'bline tangent'. Select the 'segment' layer in dooglus.rincevent.net/random/bline-and-segment-tangents.sifz and see how the two tangents are different lengths without this revision. git-svn-id: http://svn.voria.com/code@1855 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/valuenode_segcalctangent.cpp b/synfig-core/trunk/src/synfig/valuenode_segcalctangent.cpp index ab3f454..8d57261 100644 --- a/synfig-core/trunk/src/synfig/valuenode_segcalctangent.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_segcalctangent.cpp @@ -82,7 +82,7 @@ ValueNode_SegCalcTangent::operator()(Time t)const Segment segment((*segment_)(t).get(Segment())); etl::hermite curve(segment.p1,segment.p2,segment.t1,segment.t2); - etl::derivative< etl::hermite > deriv(curve); + etl::derivative< etl::hermite > deriv(curve, 0.0001); return deriv((*amount_)(t).get(Real()))*(0.5); }