X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_vectorx.cpp;h=11ed4244ef3cc8dfff4d3e9a94c3f63d76fd646b;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hp=f6df3c83a2ad84e70231b54421d5776bc55523ae;hpb=71e30a766e852b1a96ad035adc4ba21e5a422f70;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_vectorx.cpp b/synfig-core/src/synfig/valuenode_vectorx.cpp index f6df3c8..11ed424 100644 --- a/synfig-core/src/synfig/valuenode_vectorx.cpp +++ b/synfig-core/src/synfig/valuenode_vectorx.cpp @@ -53,6 +53,8 @@ using namespace synfig; ValueNode_VectorX::ValueNode_VectorX(const ValueBase &value): LinkableValueNode(value.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); switch(value.get_type()) { case ValueBase::TYPE_REAL: @@ -164,3 +166,19 @@ ValueNode_VectorX::check_type(ValueBase::Type type) { return type==ValueBase::TYPE_REAL; } + +LinkableValueNode::Vocab +ValueNode_VectorX::get_children_vocab_vfunc()const +{ + if(children_vocab.size()) + return children_vocab; + + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"vector") + .set_local_name(_("Vector")) + .set_description(_("The vector where the X coordinate is extracted from")) + ); + + return ret; +}