X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fmodules%2Flyr_std%2Fshade.cpp;h=5c5b129b6bbc0480b8bda40a10db2125ea5c9662;hb=2f015c519aa92f29144873527c109c21c171c6a7;hp=b1746efa78ed3aedc14ca6c4d15b508909733239;hpb=8ef042c40521681cea99944097c4f90a5ac6cf74;p=synfig.git diff --git a/synfig-core/trunk/src/modules/lyr_std/shade.cpp b/synfig-core/trunk/src/modules/lyr_std/shade.cpp index b1746ef..5c5b129 100644 --- a/synfig-core/trunk/src/modules/lyr_std/shade.cpp +++ b/synfig-core/trunk/src/modules/lyr_std/shade.cpp @@ -1,6 +1,6 @@ /* === S Y N F I G ========================================================= */ /*! \file shade.cpp -** \brief Template Header +** \brief Implementation of the "Shade" layer ** ** $Id$ ** @@ -90,7 +90,9 @@ Layer_Shade::set_param(const String ¶m, const ValueBase &value) { IMPORT_PLUS(size,clamp(size)); IMPORT(type); - IMPORT(color); + IMPORT_PLUS(color, { if (color.get_a() == 0) if (converted_blend_) { + set_blend_method(Color::BLEND_ALPHA_OVER); + color.set_a(1); } else transparent_color_ = true; }); IMPORT(offset); IMPORT(invert);