X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=inline;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fvaluenode_reference.cpp;h=aa5dacc27716b6821f2319e1d5680988f3395cfe;hb=09a59b4cf5f0806bdb959d9eeb2ca11cc5a96e66;hp=f1d7189b1912f51346da847b1855bfe68445a8d4;hpb=c3ad95144d148602f672e95ddda1f18fc35502f8;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/valuenode_reference.cpp b/synfig-core/trunk/src/synfig/valuenode_reference.cpp index f1d7189..aa5dacc 100644 --- a/synfig-core/trunk/src/synfig/valuenode_reference.cpp +++ b/synfig-core/trunk/src/synfig/valuenode_reference.cpp @@ -1,6 +1,6 @@ /* === S Y N F I G ========================================================= */ /*! \file valuenode_reference.cpp -** \brief Template File +** \brief Implementation of the "Reference" valuenode conversion. ** ** $Id$ ** @@ -80,7 +80,8 @@ ValueNode_Reference::~ValueNode_Reference() bool ValueNode_Reference::set_link_vfunc(int i,ValueNode::Handle x) { - assert(i==0); + assert(i>=0 && iget_type()!=get_type() && !PlaceholderValueNode::Handle::cast_dynamic(x)) return false; link_=x; @@ -91,7 +92,8 @@ ValueNode_Reference::set_link_vfunc(int i,ValueNode::Handle x) ValueNode::LooseHandle ValueNode_Reference::get_link_vfunc(int i)const { - assert(i==0); + assert(i>=0 && i=0 && i=0 && i