AkhIL mentioned on IRC that bitmaps weren't working with 'straight onto' blending...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 30 Jan 2008 13:54:47 +0000 (13:54 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Wed, 30 Jan 2008 13:54:47 +0000 (13:54 +0000)
git-svn-id: http://svn.voria.com/code@1526 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/synfig/target_scanline.cpp
synfig-core/trunk/src/synfig/target_tile.cpp

index 23b86b3..4c3ae0b 100644 (file)
@@ -173,6 +173,7 @@ synfig::Target_Scanline::render(ProgressCallback *cb)
 
                #ifdef SYNFIG_OPTIMIZE_LAYER_TREE
                Canvas::Handle op_canvas(Canvas::create());
+               op_canvas->set_file_name(canvas->get_file_name());
                optimize_layers(canvas->get_time(), canvas->get_context(), op_canvas);
                context=op_canvas->get_context();
                #else
@@ -307,6 +308,7 @@ synfig::Target_Scanline::render(ProgressCallback *cb)
 
                #ifdef SYNFIG_OPTIMIZE_LAYER_TREE
                Canvas::Handle op_canvas(Canvas::create());
+               op_canvas->set_file_name(canvas->get_file_name());
                optimize_layers(canvas->get_time(), canvas->get_context(), op_canvas);
                context=op_canvas->get_context();
                #else
index 92665d2..a9b876d 100644 (file)
@@ -357,6 +357,7 @@ synfig::Target_Tile::render(ProgressCallback *cb)
 
                        #ifdef SYNFIG_OPTIMIZE_LAYER_TREE
                        Canvas::Handle op_canvas(Canvas::create());
+                       op_canvas->set_file_name(canvas->get_file_name());
                        optimize_layers(canvas->get_time(), canvas->get_context(), op_canvas);
                        context=op_canvas->get_context();
                        #else
@@ -367,6 +368,7 @@ synfig::Target_Tile::render(ProgressCallback *cb)
                        #ifdef SYNFIG_OPTIMIZE_LAYER_TREE
                        Context context;
                        Canvas::Handle op_canvas(Canvas::create());
+                       op_canvas->set_file_name(canvas->get_file_name());
                        // Set the time that we wish to render
                        canvas->set_time(t);
                        optimize_layers(canvas->get_time(), canvas->get_context(), op_canvas);
@@ -402,6 +404,7 @@ synfig::Target_Tile::render(ProgressCallback *cb)
 
                        #ifdef SYNFIG_OPTIMIZE_LAYER_TREE
                        Canvas::Handle op_canvas(Canvas::create());
+                       op_canvas->set_file_name(canvas->get_file_name());
                        optimize_layers(canvas->get_time(), canvas->get_context(), op_canvas);
                        context=op_canvas->get_context();
                        #else