X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fsynfig%2Fvaluenode_exp.cpp;h=200d43853c9973df1575bc787153752becd6ffef;hb=dbc88fd05c8d29849d2e6227d23605508eb188ae;hp=4e41cc231b4a246e533f119884b01902170697ad;hpb=71e30a766e852b1a96ad035adc4ba21e5a422f70;p=synfig.git diff --git a/synfig-core/src/synfig/valuenode_exp.cpp b/synfig-core/src/synfig/valuenode_exp.cpp index 4e41cc2..200d438 100644 --- a/synfig-core/src/synfig/valuenode_exp.cpp +++ b/synfig-core/src/synfig/valuenode_exp.cpp @@ -53,6 +53,8 @@ using namespace synfig; ValueNode_Exp::ValueNode_Exp(const ValueBase &value): LinkableValueNode(value.get_type()) { + Vocab ret(get_children_vocab()); + set_children_vocab(ret); switch(value.get_type()) { case ValueBase::TYPE_REAL: @@ -175,3 +177,24 @@ ValueNode_Exp::check_type(ValueBase::Type type) { return type==ValueBase::TYPE_REAL; } + +LinkableValueNode::Vocab +ValueNode_Exp::get_children_vocab_vfunc()const +{ + if(children_vocab.size()) + return children_vocab; + + LinkableValueNode::Vocab ret; + + ret.push_back(ParamDesc(ValueBase(),"exp") + .set_local_name(_("Exponent")) + .set_description(_("The value to raise the constant 'e'")) + ); + + ret.push_back(ParamDesc(ValueBase(),"scale") + .set_local_name(_("Scale")) + .set_description(_("Multiplier of the resulting exponent")) + ); + + return ret; +}