X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_exp.cpp;h=154e1663db44f4069c0e2ad70407c528c1a3e6d1;hb=2b2950e88fb6c4bfa36ec91eb86de33c6c27fafe;hp=05d4b6350629794973fda9f3d8de1a44f8602f1c;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_exp.cpp b/synfig-core/src/synfig/valuenode_exp.cpp index 05d4b63..154e166 100644 --- a/synfig-core/src/synfig/valuenode_exp.cpp +++ b/synfig-core/src/synfig/valuenode_exp.cpp @@ -53,6 +53,8 @@ using namespace synfig; ValueNode_Exp::ValueNode_Exp(const ValueBase &value): LinkableValueNode(value.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); switch(value.get_type()) { case ValueBase::TYPE_REAL: @@ -62,8 +64,6 @@ ValueNode_Exp::ValueNode_Exp(const ValueBase &value): default: throw Exception::BadType(ValueBase::type_local_name(value.get_type())); } - - DCAST_HACK_ENABLE(); } LinkableValueNode* @@ -131,49 +131,29 @@ ValueNode_Exp::get_link_vfunc(int i)const return 0; } -int -ValueNode_Exp::link_count()const +bool +ValueNode_Exp::check_type(ValueBase::Type type) { - return 2; + return type==ValueBase::TYPE_REAL; } -String -ValueNode_Exp::link_name(int i)const +LinkableValueNode::Vocab +ValueNode_Exp::get_children_vocab_vfunc()const { - assert(i>=0 && i=0 && i