Browse Source

Particles2D: Fix initial size randomness property having no effect.

It was just a little typo :p
Andreas Haas 8 years ago
parent
commit
4dd6bead1f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/2d/particles_2d.cpp

+ 1 - 1
scene/2d/particles_2d.cpp

@@ -563,7 +563,7 @@ void Particles2D::_notification(int p_what) {
 					}
 					}
 				}
 				}
 
 
-				float initial_size = param[PARAM_INITIAL_SIZE]+param[PARAM_INITIAL_SIZE]*_rand_from_seed(&rand_seed)*randomness[PARAM_FINAL_SIZE];
+				float initial_size = param[PARAM_INITIAL_SIZE]+param[PARAM_INITIAL_SIZE]*_rand_from_seed(&rand_seed)*randomness[PARAM_INITIAL_SIZE];
 				float final_size = param[PARAM_FINAL_SIZE]+param[PARAM_FINAL_SIZE]*_rand_from_seed(&rand_seed)*randomness[PARAM_FINAL_SIZE];
 				float final_size = param[PARAM_FINAL_SIZE]+param[PARAM_FINAL_SIZE]*_rand_from_seed(&rand_seed)*randomness[PARAM_FINAL_SIZE];
 
 
 				float size_mult=initial_size*(1.0-ptime) + final_size*ptime;
 				float size_mult=initial_size*(1.0-ptime) + final_size*ptime;