From: dooglus Date: Sun, 9 Sep 2007 23:05:17 +0000 (+0000) Subject: In the plant layer, don't stunt growth at all when random factor is zero. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=71284eeaace7eb0f1f2fc2ae0241fae55bdb704b;p=synfig.git In the plant layer, don't stunt growth at all when random factor is zero. git-svn-id: http://svn.voria.com/code@645 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/modules/mod_particle/plant.cpp b/synfig-core/trunk/src/modules/mod_particle/plant.cpp index 1af642c..c5b0400 100644 --- a/synfig-core/trunk/src/modules/mod_particle/plant.cpp +++ b/synfig-core/trunk/src/modules/mod_particle/plant.cpp @@ -225,7 +225,7 @@ Plant::sync()const bounding_rect.expand(point); - Real stunt_growth(random_factor * random(Random::SMOOTH_COSINE,i,f+seg,0.0f,0.0f)/2.0+0.5); + Real stunt_growth(random_factor * (random(Random::SMOOTH_COSINE,i,f+seg,0.0f,0.0f)/2.0+0.5)); stunt_growth*=stunt_growth; if((((i+1)*sprouts + steps/2) / steps) > branch_count) {