X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_intstring.cpp;h=e9c86e78f27040e479d2ac748412c14683d2ec56;hb=2b2950e88fb6c4bfa36ec91eb86de33c6c27fafe;hp=1ae8284e602daf94e12011a68359c350044423b3;hpb=71e30a766e852b1a96ad035adc4ba21e5a422f70;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_intstring.cpp b/synfig-core/src/synfig/valuenode_intstring.cpp index 1ae8284..e9c86e7 100644 --- a/synfig-core/src/synfig/valuenode_intstring.cpp +++ b/synfig-core/src/synfig/valuenode_intstring.cpp @@ -54,6 +54,8 @@ using namespace synfig; ValueNode_IntString::ValueNode_IntString(const ValueBase &value): LinkableValueNode(value.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); switch(value.get_type()) { case ValueBase::TYPE_STRING: @@ -148,53 +150,35 @@ ValueNode_IntString::get_link_vfunc(int i)const return 0; } -int -ValueNode_IntString::link_count()const +bool +ValueNode_IntString::check_type(ValueBase::Type type) { - return 3; + return + type==ValueBase::TYPE_STRING; } -String -ValueNode_IntString::link_name(int i)const +LinkableValueNode::Vocab +ValueNode_IntString::get_children_vocab_vfunc()const { - assert(i>=0 && i=0 && i