From f50724e2c8afbe39fd7770b79fae2864f96cc5e9 Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 7 Sep 2007 19:31:50 +0000 Subject: [PATCH] Fixed another instance of the bug which was causing the plant layer to break. When initialising a variable at the same time as declaring it, it's not possible to use the previous variable of the same name in the initialiser. git-svn-id: http://svn.voria.com/code@623 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/modules/mod_noise/distort.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/synfig-core/trunk/src/modules/mod_noise/distort.cpp b/synfig-core/trunk/src/modules/mod_noise/distort.cpp index 4c8f871..45f3179 100644 --- a/synfig-core/trunk/src/modules/mod_noise/distort.cpp +++ b/synfig-core/trunk/src/modules/mod_noise/distort.cpp @@ -84,7 +84,8 @@ NoiseDistort::color_func(const Point &point, float supersample,Context context)c int i; Time time; time=speed*curr_time; - int smooth((!speed && smooth==3)?5:smooth); + int temp_smooth(smooth); + int smooth((!speed && temp_smooth==3)?5:temp_smooth); { Vector vect(0,0); -- 2.7.4