Use 'Composite' for the first time the layers under a 'Duplicate' layer is rendered...
[synfig.git] / synfig-core / trunk / src / synfig / layer_duplicate.cpp
index 922704a..6577237 100644 (file)
@@ -185,7 +185,7 @@ Layer_Duplicate::accelerated_render(Context context,Surface *surface,int quality
                Surface::alpha_pen apen(surface->begin());
                apen.set_alpha(1.0);
                // \todo have a checkbox allowing use of 'behind' to reverse the order?
-               apen.set_blend_method(blend_method);
+               apen.set_blend_method(i ? blend_method : Color::BLEND_COMPOSITE);
                tmp.blit_to(apen);
                i++;
        } while (duplicate_param->step(time_cur));