X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_join.cpp;h=19b49f7aa35504219746c691b4eb6c80b66b193c;hb=HEAD;hp=eaa8fbcced522bb5c43f6c3cd301ce5c292a776d;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_join.cpp b/synfig-core/src/synfig/valuenode_join.cpp index eaa8fbc..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: @@ -74,8 +76,6 @@ ValueNode_Join::ValueNode_Join(const ValueBase &value): default: throw Exception::BadType(ValueBase::type_local_name(value.get_type())); } - - DCAST_HACK_ENABLE(); } LinkableValueNode* @@ -174,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