X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Fcanvas.cpp;h=1d54730ef10acf5c93cdd545e3d29afa9777494c;hb=37600b4b217caa5e316984ec0b035c5e8f9698af;hp=11d84a3254e0834e84dc0d3a78a4f18d8a5af9f0;hpb=d3187b0a5a28aa2e07d68b415bc21e2df5ce9791;p=synfig.git diff --git a/synfig-core/trunk/src/synfig/canvas.cpp b/synfig-core/trunk/src/synfig/canvas.cpp index 11d84a3..1d54730 100644 --- a/synfig-core/trunk/src/synfig/canvas.cpp +++ b/synfig-core/trunk/src/synfig/canvas.cpp @@ -6,6 +6,7 @@ ** ** \legal ** Copyright (c) 2002-2005 Robert B. Quattlebaum Jr., Adrian Bentley +** Copyright (c) 2007 Chris Moore ** ** This package is free software; you can redistribute it and/or ** modify it under the terms of the GNU General Public License as @@ -1018,10 +1019,10 @@ synfig::optimize_layers(Context context, Canvas::Handle op_canvas, bool seen_mot Context iter; std::vector< std::pair > sort_list; - int i, motion_blur_i; // motion_blur_i is for resolving which layer comes first in the event of a z_depth tie - float motion_blur_z_depth; // the z_depth of the least deep motion blur layer in this context + int i, motion_blur_i=0; // motion_blur_i is for resolving which layer comes first in the event of a z_depth tie + float motion_blur_z_depth=0; // the z_depth of the least deep motion blur layer in this context bool seen_motion_blur_locally = false; - bool motion_blurred; // the final result - is this layer blurred or not? + bool motion_blurred; // the final result - is this layer blurred or not? // If the parent didn't cause us to already be motion blurred, // check whether there's a motion blur in this context,