X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_reciprocal.cpp;h=b4f8d8a01cfeb03c29bba03636eeb887a2ce735f;hb=8eed22b9657ac7cb1881eab5c7b5c3d1f0c69468;hp=d31a995fef10a041248a07dd4d1ef07907e5b87d;hpb=a095981e18cc37a8ecc7cd237cc22b9c10329264;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_reciprocal.cpp b/synfig-core/src/synfig/valuenode_reciprocal.cpp index d31a995..b4f8d8a 100644 --- a/synfig-core/src/synfig/valuenode_reciprocal.cpp +++ b/synfig-core/src/synfig/valuenode_reciprocal.cpp @@ -187,3 +187,26 @@ ValueNode_Reciprocal::check_type(ValueBase::Type type) { return type==ValueBase::TYPE_REAL; } + +LinkableValueNode::Vocab +ValueNode_Reciprocal::get_param_vocab()const +{ + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"link") + .set_local_name(_("Link")) + .set_description(_("The value node used to calculate its reciprocal")) + ); + + ret.push_back(ParamDesc(ValueBase(),"epsilon") + .set_local_name(_("Epsilon")) + .set_description(_("The value used to decide whether 'Link' is too small to obtain its reciprocal")) + ); + + ret.push_back(ParamDesc(ValueBase(),"infinite") + .set_local_name(_("Infinite")) + .set_description(_("The resulting value when 'Link' < 'Epsilon'")) + ); + + return ret; +}