X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_linear.cpp;h=d487b7bf91adc53414818df588767b877d6cbc83;hb=6c27d1b6cf4694a873542cb264c650893f2c6e0e;hp=b017c9a28c3df83d82eb1e7dbeed7479da876174;hpb=8855fdd4a26f69afaa5a018c6eb9cfc770f0c09d;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode_linear.cpp b/synfig-core/trunk/src/synfig/valuenode_linear.cpp index b017c9a..d487b7b 100644 --- a/synfig-core/trunk/src/synfig/valuenode_linear.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_linear.cpp @@ -1,6 +1,6 @@ /* === S Y N F I G ========================================================= */ /*! \file valuenode_linear.cpp -** \brief Template File +** \brief Implementation of the "Linear" valuenode conversion. ** ** $Id$ ** @@ -82,7 +82,7 @@ ValueNode_Linear::ValueNode_Linear(const ValueBase &value): set_link("offset",ValueNode_Const::create(value.get(Vector()))); break; default: - throw Exception::BadType(ValueBase::type_name(get_type())); + throw Exception::BadType(ValueBase::type_local_name(get_type())); } DCAST_HACK_ENABLE(); @@ -157,7 +157,8 @@ ValueNode_Linear::check_type(ValueBase::Type type) bool ValueNode_Linear::set_link_vfunc(int i,ValueNode::Handle x) { - assert(i==0 || i==1); + assert(i>=0 && i=0 && i=0 && i=0 && i