X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fmodules%2Fmod_gradient%2Fconicalgradient.cpp;h=c697de243103fe9f4c0106ee79c0fdd705ea4e80;hb=42e8f249832b9ca81691bbf76a6668aa4612117f;hp=5bf42a9ddf15659b2687447e65d3d49ff296a240;hpb=adfc80c126f482d7ea2bac38001a2c4a7c7df88c;p=synfig.git diff --git a/synfig-core/src/modules/mod_gradient/conicalgradient.cpp b/synfig-core/src/modules/mod_gradient/conicalgradient.cpp index 5bf42a9..c697de2 100644 --- a/synfig-core/src/modules/mod_gradient/conicalgradient.cpp +++ b/synfig-core/src/modules/mod_gradient/conicalgradient.cpp @@ -65,12 +65,14 @@ SYNFIG_LAYER_SET_CVS_ID(ConicalGradient,"$Id$"); /* === E N T R Y P O I N T ================================================= */ ConicalGradient::ConicalGradient(): - Layer_Composite(1.0,Color::BLEND_STRAIGHT), + Layer_Composite(1.0,Color::BLEND_COMPOSITE), gradient(Color::black(),Color::white()), center(0,0), angle(Angle::zero()), symmetric(false) { + Layer::Vocab voc(get_param_vocab()); + Layer::fill_static(voc); } bool @@ -104,19 +106,23 @@ ConicalGradient::get_param_vocab()const ret.push_back(ParamDesc("gradient") .set_local_name(_("Gradient")) + .set_description(_("Gradient to apply")) ); ret.push_back(ParamDesc("center") .set_local_name(_("Center")) + .set_description(_("Center of the cone")) ); ret.push_back(ParamDesc("angle") .set_local_name(_("Angle")) .set_origin("center") + .set_description(_("Rotation of the gradient around the center")) ); ret.push_back(ParamDesc("symmetric") .set_local_name(_("Symmetric")) + .set_description(_("When checked the gradient is looped")) ); return ret;