Use link_count from children vocabulary and return the stored vocabulary if already...
[synfig.git] / synfig-core / src / synfig / valuenode_blinereversetangent.cpp
index ed2928b..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()));
 
@@ -200,3 +202,24 @@ ValueNode_BLineRevTangent::check_type(ValueBase::Type type)
 {
        return (type==ValueBase::TYPE_BLINEPOINT);
 }
+
+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")
+               .set_local_name(_("Reference"))
+               .set_description(_("The referenced tangent to reverse"))
+       );
+
+       ret.push_back(ParamDesc(ValueBase(),"reverse")
+               .set_local_name(_("Reverse"))
+               .set_description(_("When checked, the reference is reversed"))
+       );
+
+       return ret;
+}