Fix 2119764 "eyedropper doesn't work with straight blends" for all layer_shape layers...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 20 Sep 2008 16:48:35 +0000 (16:48 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sat, 20 Sep 2008 16:48:35 +0000 (16:48 +0000)
git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2064 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/layer_shape.cpp

index 8c4a818..2116d2f 100644 (file)
@@ -1285,7 +1285,7 @@ Layer_Shape::get_color(Context context, const Point &p)const
        bool intersect = ((!!intercepts) ^ invert);
 
        if(!intersect)
-               return context.get_color(pp);
+               return Color::blend(Color::alpha(),context.get_color(pp),get_amount(),get_blend_method());
 
        //Ok, we're inside... bummmm ba bum buM...
        if(get_blend_method() == Color::BLEND_STRAIGHT && get_amount() == 1)