X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_segcalcvertex.cpp;h=6a88f0607b7ff02f32bae8940a38003d7ee93e77;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hp=6391f3949a7456c1fb7b8a8116ccec8273e3f8d4;hpb=adfc80c126f482d7ea2bac38001a2c4a7c7df88c;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_segcalcvertex.cpp b/synfig-core/src/synfig/valuenode_segcalcvertex.cpp index 6391f39..6a88f06 100644 --- a/synfig-core/src/synfig/valuenode_segcalcvertex.cpp +++ b/synfig-core/src/synfig/valuenode_segcalcvertex.cpp @@ -57,6 +57,8 @@ using namespace synfig; ValueNode_SegCalcVertex::ValueNode_SegCalcVertex(const ValueBase::Type &x): LinkableValueNode(x) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); if(x!=ValueBase::TYPE_VECTOR) throw Exception::BadType(ValueBase::type_local_name(x)); @@ -179,3 +181,23 @@ ValueNode_SegCalcVertex::create_new()const { return new ValueNode_SegCalcVertex(ValueBase::TYPE_VECTOR); } + +LinkableValueNode::Vocab +ValueNode_SegCalcVertex::get_children_vocab_vfunc()const +{ + if(children_vocab.size()) + return children_vocab; + + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"segment") + .set_local_name(_("Segment")) + .set_description(_("The Segment where the vertex is linked to")) + ); + + ret.push_back(ParamDesc(ValueBase(),"amount") + .set_local_name(_("Amount")) + .set_description(_("The position of the linked vertex on the Segment (0,1]")) + ); + return ret; +}