X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_exp.cpp;h=154e1663db44f4069c0e2ad70407c528c1a3e6d1;hb=HEAD;hp=4e41cc231b4a246e533f119884b01902170697ad;hpb=db91521de71f46f2debb4b3ef1edfe351aea3b2d;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_exp.cpp b/synfig-core/src/synfig/valuenode_exp.cpp index 4e41cc2..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: @@ -129,49 +131,29 @@ ValueNode_Exp::get_link_vfunc(int i)const return 0; } -int -ValueNode_Exp::link_count()const -{ - return 2; -} - -String -ValueNode_Exp::link_name(int i)const +bool +ValueNode_Exp::check_type(ValueBase::Type type) { - assert(i>=0 && i=0 && i