Merge branch 'genete_static_values'
[synfig.git] / synfig-core / src / modules / mod_example / metaballs.cpp
index 0cfa6c3..44ef9ec 100644 (file)
@@ -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")