From 70532f9997b2d18e5cd0ec916c314b109b50f59a Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 28 Dec 2007 02:19:12 +0000 Subject: [PATCH] Don't allow epsilon to be less than 0.00000001. git-svn-id: http://svn.voria.com/code@1240 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/valuenode_reciprocal.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/synfig-core/trunk/src/synfig/valuenode_reciprocal.cpp b/synfig-core/trunk/src/synfig/valuenode_reciprocal.cpp index 4af2051..1749d63 100644 --- a/synfig-core/trunk/src/synfig/valuenode_reciprocal.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_reciprocal.cpp @@ -151,6 +151,9 @@ ValueNode_Reciprocal::operator()(Time t)const Real epsilon = (*epsilon_) (t).get(Real()); Real infinite = (*infinite_)(t).get(Real()); + if (epsilon < 0.00000001) + epsilon = 0.00000001; + if (abs(link) < epsilon) if (link < 0) return -infinite; -- 2.7.4