X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_realstring.cpp;h=aa4d834160610dce1406bfba8ee672047d8d74a3;hb=HEAD;hp=a8b14da2c6e31edeee25ebe926913ce239a8f3d2;hpb=5db17dd500c44a59e62bc52cf1c22392edc972a8;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_realstring.cpp b/synfig-core/src/synfig/valuenode_realstring.cpp index a8b14da..aa4d834 100644 --- a/synfig-core/src/synfig/valuenode_realstring.cpp +++ b/synfig-core/src/synfig/valuenode_realstring.cpp @@ -54,6 +54,8 @@ using namespace synfig; ValueNode_RealString::ValueNode_RealString(const ValueBase &value): LinkableValueNode(value.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); switch(value.get_type()) { case ValueBase::TYPE_STRING: @@ -153,56 +155,41 @@ ValueNode_RealString::get_link_vfunc(int i)const return 0; } -int -ValueNode_RealString::link_count()const +bool +ValueNode_RealString::check_type(ValueBase::Type type) { - return 4; + return + type==ValueBase::TYPE_STRING; } -String -ValueNode_RealString::link_name(int i)const +LinkableValueNode::Vocab +ValueNode_RealString::get_children_vocab_vfunc()const { - assert(i>=0 && i=0 && i