X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_integer.cpp;h=8b44504b411f2f18aeb72c95bcd29d64a824a4a0;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hp=38cd08247377ab3a1717b16a4a7ff774741e8ccd;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_integer.cpp b/synfig-core/src/synfig/valuenode_integer.cpp index 38cd082..8b44504 100644 --- a/synfig-core/src/synfig/valuenode_integer.cpp +++ b/synfig-core/src/synfig/valuenode_integer.cpp @@ -59,6 +59,8 @@ ValueNode_Integer::ValueNode_Integer(const ValueBase::Type &x): ValueNode_Integer::ValueNode_Integer(const ValueBase &x): LinkableValueNode(x.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); switch(x.get_type()) { case ValueBase::TYPE_ANGLE: @@ -197,3 +199,19 @@ ValueNode_Integer::check_type(ValueBase::Type type __attribute__ ((unused))) // type==ValueBase::TYPE_REAL || // type==ValueBase::TYPE_TIME; } + +LinkableValueNode::Vocab +ValueNode_Integer::get_children_vocab_vfunc()const +{ + if(children_vocab.size()) + return children_vocab; + + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"integer") + .set_local_name(_("Integer")) + .set_description(_("The integer value to be converted")) + ); + + return ret; +}