From c47c55f3496571ee27d1ad0f9eae1974a50d82eb Mon Sep 17 00:00:00 2001 From: dooglus Date: Sat, 12 Jan 2008 17:06:37 +0000 Subject: [PATCH] Use 'Composite' for the first time the layers under a 'Duplicate' layer is rendered, to allow other blend methods like "Add" to be used in the Duplicate layer itself. git-svn-id: http://svn.voria.com/code@1336 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/layer_duplicate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synfig-core/trunk/src/synfig/layer_duplicate.cpp b/synfig-core/trunk/src/synfig/layer_duplicate.cpp index 922704a..6577237 100644 --- a/synfig-core/trunk/src/synfig/layer_duplicate.cpp +++ b/synfig-core/trunk/src/synfig/layer_duplicate.cpp @@ -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)); -- 2.7.4