From: dooglus Date: Sun, 2 Dec 2007 00:53:16 +0000 (+0000) Subject: Possibly fix 1841280: "Insert Item in animation mode renders badly before insertion" X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=1ab5bedb77d59775e774ea67a55a0811668d015f;p=synfig.git Possibly fix 1841280: "Insert Item in animation mode renders badly before insertion" git-svn-id: http://svn.voria.com/code@1172 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/valuenode_bline.cpp b/synfig-core/trunk/src/synfig/valuenode_bline.cpp index 83a7c66..5160538 100644 --- a/synfig-core/trunk/src/synfig/valuenode_bline.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_bline.cpp @@ -53,6 +53,8 @@ using namespace synfig; /* === M A C R O S ========================================================= */ +#define EPSILON 0.0000001f + /* === G L O B A L S ======================================================= */ /* === P R O C E D U R E S ================================================= */ @@ -351,7 +353,7 @@ ValueNode_BLine::operator()(Time t)const assert(amount<=1.0f); // it's fully on - if(amount==1.0f) + if (amount > 1.0f - EPSILON) { if(first_flag) {