In the plant layer, don't stunt growth at all when random factor is zero.
[synfig.git] / 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) {