From: dooglus Date: Sat, 22 Nov 2008 15:35:00 +0000 (+0000) Subject: Fix Metaballs::get_color() so it takes the context into account. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=922e067f6e961d24c9fcad4fbc9527d7642472fa;p=synfig.git Fix Metaballs::get_color() so it takes the context into account. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2239 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/modules/example/metaballs.cpp b/synfig-core/trunk/src/modules/example/metaballs.cpp index 9d55518..a1bf71e 100644 --- a/synfig-core/trunk/src/modules/example/metaballs.cpp +++ b/synfig-core/trunk/src/modules/example/metaballs.cpp @@ -175,7 +175,7 @@ Color Metaballs::get_color(Context context, const Point &pos)const { if (totaldensity(pos) >= threshold) - return color; + return Color::blend(color,context.get_color(pos),get_amount(),get_blend_method()); else return context.get_color(pos); }