When a new metaball layer is created, initialise it with 3 balls.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 22 Nov 2008 15:38:31 +0000 (15:38 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 22 Nov 2008 15:38:31 +0000 (15:38 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2247 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/modules/example/metaballs.cpp

index 76ebf76..a582dc1 100644 (file)
@@ -68,6 +68,9 @@ Metaballs::Metaballs():
        Layer_Composite(1.0,Color::BLEND_STRAIGHT),
        color(Color::black())
 {
+       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);
 }
 
 bool