In the plant layer, don't stunt growth at all when random factor is zero.
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 9 Sep 2007 23:05:17 +0000 (23:05 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Sun, 9 Sep 2007 23:05:17 +0000 (23:05 +0000)
git-svn-id: http://svn.voria.com/code@645 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-core/trunk/src/modules/mod_particle/plant.cpp

index 1af642c..c5b0400 100644 (file)
@@ -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) {