X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_exp.cpp;h=266034b5bed48367bba628de4eed1e5ddc983b35;hb=662aa088c1710830ff30e4ff0b1b407a6d2cea4e;hp=59ccd64ae92d82c4dc28fe6701a3baf25d7c35b4;hpb=c6b0c050710376d3cf99b7c083a7c47f1a0516c9;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode_exp.cpp b/synfig-core/trunk/src/synfig/valuenode_exp.cpp index 59ccd64..266034b 100644 --- a/synfig-core/trunk/src/synfig/valuenode_exp.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_exp.cpp @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2008 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -55,11 +56,11 @@ 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: - throw Exception::BadType(ValueBase::type_name(value.get_type())); + throw Exception::BadType(ValueBase::type_local_name(value.get_type())); } DCAST_HACK_ENABLE(); @@ -102,21 +103,14 @@ ValueNode_Exp::get_local_name()const } bool -ValueNode_Exp::set_link_vfunc(int i,ValueNode::Handle x) +ValueNode_Exp::set_link_vfunc(int i,ValueNode::Handle value) { assert(i>=0 && i