X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_join.cpp;h=19b49f7aa35504219746c691b4eb6c80b66b193c;hb=2b2950e88fb6c4bfa36ec91eb86de33c6c27fafe;hp=2c085ba57fa7e6058197d269b886f6bb88165a98;hpb=db91521de71f46f2debb4b3ef1edfe351aea3b2d;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_join.cpp b/synfig-core/src/synfig/valuenode_join.cpp index 2c085ba..19b49f7 100644 --- a/synfig-core/src/synfig/valuenode_join.cpp +++ b/synfig-core/src/synfig/valuenode_join.cpp @@ -55,6 +55,8 @@ using namespace synfig; ValueNode_Join::ValueNode_Join(const ValueBase &value): LinkableValueNode(value.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); switch(value.get_type()) { case ValueBase::TYPE_STRING: @@ -172,56 +174,40 @@ ValueNode_Join::get_link_vfunc(int i)const return 0; } -int -ValueNode_Join::link_count()const +bool +ValueNode_Join::check_type(ValueBase::Type type) { - return 4; + return + type==ValueBase::TYPE_STRING; } -String -ValueNode_Join::link_name(int i)const +LinkableValueNode::Vocab +ValueNode_Join::get_children_vocab_vfunc()const { - assert(i>=0 && i=0 && i