From: dooglus Date: Sat, 8 Mar 2008 12:54:31 +0000 (+0000) Subject: When converting to an "Exponential" ValueNode, default the exponent to zero so the... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=e87a45324e567992fea8c42d549ac57f9fa38703;p=synfig.git When converting to an "Exponential" ValueNode, default the exponent to zero so the value remains the same. git-svn-id: http://svn.voria.com/code@1883 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/valuenode_exp.cpp b/synfig-core/trunk/src/synfig/valuenode_exp.cpp index 520112b..266034b 100644 --- a/synfig-core/trunk/src/synfig/valuenode_exp.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_exp.cpp @@ -56,7 +56,7 @@ ValueNode_Exp::ValueNode_Exp(const ValueBase &value): switch(value.get_type()) { case ValueBase::TYPE_REAL: - set_link("exp",ValueNode_Const::create(Real(1))); + set_link("exp",ValueNode_Const::create(Real(0))); set_link("scale",ValueNode_Const::create(value.get(Real()))); break; default: