Use link_count from children vocabulary and return the stored vocabulary if already...
[synfig.git] / synfig-core / src / synfig / valuenode.cpp
index 1ff921e..6e1e6a4 100644 (file)
@@ -700,8 +700,20 @@ LinkableValueNode::get_link_index_from_name(const String &name)const
        throw Exception::BadLinkName(name);
 }
 
+int
+LinkableValueNode::link_count()const
+{
+       return get_children_vocab().size();
+}
+
 LinkableValueNode::Vocab
 LinkableValueNode::get_children_vocab()const
 {
        return get_children_vocab_vfunc();
 }
+
+void
+LinkableValueNode::set_children_vocab(Vocab &newvocab)
+{
+       children_vocab.assign(newvocab.begin(),newvocab.end());
+}