Use link_count from children vocabulary and return the stored vocabulary if already...
[synfig.git] / synfig-core / src / synfig / valuenode_vectory.cpp
index db437d1..4e49cdc 100644 (file)
@@ -53,6 +53,8 @@ using namespace synfig;
 ValueNode_VectorY::ValueNode_VectorY(const ValueBase &value):
        LinkableValueNode(value.get_type())
 {
+       Vocab ret(get_children_vocab());
+       set_children_vocab(ret);
        switch(value.get_type())
        {
        case ValueBase::TYPE_REAL:
@@ -166,8 +168,11 @@ ValueNode_VectorY::check_type(ValueBase::Type type)
 }
 
 LinkableValueNode::Vocab
-ValueNode_VectorY::get_param_vocab()const
+ValueNode_VectorY::get_children_vocab_vfunc()const
 {
+       if(children_vocab.size())
+               return children_vocab;
+
        LinkableValueNode::Vocab ret;
 
        ret.push_back(ParamDesc(ValueBase(),"vector")