X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Fsrc%2Fmodules%2Fmod_example%2Fmetaballs.cpp;h=44ef9eced05ce4251f2a2ef3c4d185a40f859d30;hb=5b3df3ead91e215171cca0d379e84e6405d6e4ea;hp=0cfa6c3cc27543c4b419c8a3d34bb2ea90c7ee57;hpb=ac5caa76ff6cc25a7923c86350851a84bb40a93a;p=synfig.git diff --git a/synfig-core/src/modules/mod_example/metaballs.cpp b/synfig-core/src/modules/mod_example/metaballs.cpp index 0cfa6c3..44ef9ec 100644 --- a/synfig-core/src/modules/mod_example/metaballs.cpp +++ b/synfig-core/src/modules/mod_example/metaballs.cpp @@ -65,7 +65,7 @@ SYNFIG_LAYER_SET_CVS_ID(Metaballs,"$Id$"); /* === E N T R Y P O I N T ================================================= */ Metaballs::Metaballs(): - Layer_Composite(1.0,Color::BLEND_STRAIGHT), + Layer_Composite(1.0,Color::BLEND_COMPOSITE), gradient(Color::black(), Color::white()), threshold(0), threshold2(1), @@ -74,6 +74,8 @@ Metaballs::Metaballs(): centers.push_back(Point( 0, -1.5)); radii.push_back(2.5); weights.push_back(1); centers.push_back(Point(-2, 1)); radii.push_back(2.5); weights.push_back(1); centers.push_back(Point( 2, 1)); radii.push_back(2.5); weights.push_back(1); + Layer::Vocab voc(get_param_vocab()); + Layer::fill_static(voc); } bool @@ -133,7 +135,7 @@ Metaballs::get_param_vocab()const ); ret.push_back(ParamDesc("centers") - .set_local_name(_("Points")) + .set_local_name(_("Balls")) ); ret.push_back(ParamDesc("radii")