Use link_count from children vocabulary and return the stored vocabulary if already...
[synfig.git] / synfig-core / src / synfig / valuenode_blinereversetangent.cpp
index dcdee81..922d9a3 100644 (file)
@@ -63,6 +63,8 @@ ValueNode_BLineRevTangent::ValueNode_BLineRevTangent(const ValueBase::Type &x):
 ValueNode_BLineRevTangent::ValueNode_BLineRevTangent(const ValueNode::Handle &x):
        LinkableValueNode(x->get_type())
 {
+       Vocab ret(get_children_vocab());
+       set_children_vocab(ret);
        if(x->get_type()!=ValueBase::TYPE_BLINEPOINT)
                throw Exception::BadType(ValueBase::type_local_name(x->get_type()));
 
@@ -204,6 +206,9 @@ ValueNode_BLineRevTangent::check_type(ValueBase::Type type)
 LinkableValueNode::Vocab
 ValueNode_BLineRevTangent::get_children_vocab_vfunc()const
 {
+       if(children_vocab.size())
+               return children_vocab;
+
        LinkableValueNode::Vocab ret;
 
        ret.push_back(ParamDesc(ValueBase(),"reference")