Don't allow epsilon to be less than 0.00000001.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 28 Dec 2007 02:19:12 +0000 (02:19 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 28 Dec 2007 02:19:12 +0000 (02:19 +0000)
git-svn-id: http://svn.voria.com/code@1240 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index 4af2051..1749d63 100644 (file)
@@ -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;