X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Fmod_geometry%2Fcircle.cpp;h=c9b1292801e3369baabd1938c8a3945bdcfed445;hb=e74e7f97c7fe9ec10b0004a49a0222110539a4e5;hp=8df1e7892fcc397f8e7625e1f364b61d32937b99;hpb=f4ed8dcedceaba2eca469b4d4ab8bc216116ad98;p=synfig.git diff --git a/synfig-core/trunk/src/modules/mod_geometry/circle.cpp b/synfig-core/trunk/src/modules/mod_geometry/circle.cpp index 8df1e78..c9b1292 100644 --- a/synfig-core/trunk/src/modules/mod_geometry/circle.cpp +++ b/synfig-core/trunk/src/modules/mod_geometry/circle.cpp @@ -344,7 +344,7 @@ Circle::get_color(Context context, const Point &point)const return Color::blend(color,context.get_color(point),get_amount(),get_blend_method()); } else - return context.get_color(point); + return Color::blend(Color::alpha(),context.get_color(point),get_amount(),get_blend_method()); } //inside the circle's solid area (with feathering) @@ -357,7 +357,7 @@ Circle::get_color(Context context, const Point &point)const else return Color::blend(color,context.get_color(point),get_amount(),get_blend_method()); else - return context.get_color(point); + return Color::blend(Color::alpha(),context.get_color(point),get_amount(),get_blend_method()); } //If we get here, the pixel is within the feathering area, and is thus subject to falloff @@ -401,10 +401,7 @@ Circle::get_color(Context context, const Point &point)const alpha = falloff_func(cache,mag_squared); - //Compose falloff value with amount from the composite layer, and that is the blend value - alpha *= get_amount(); - - return Color::blend(color,context.get_color(point),alpha,get_blend_method()); + return Color::blend(color*alpha,context.get_color(point),get_amount(),get_blend_method()); } }