I missed a few layers that can be used with the 'transparent + straight blend' trick...
[synfig.git] / synfig-core / trunk / src / modules / mod_geometry / checkerboard.cpp
index c90ae9c..ad79c1d 100644 (file)
@@ -87,7 +87,9 @@ CheckerBoard::point_test(const synfig::Point& getpos)const
 bool
 CheckerBoard::set_param(const String &param, const ValueBase &value)
 {
-       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(pos);
        IMPORT(pos[0]);
        IMPORT(pos[1]);