diff options
author | Andreas Haas <liu.gam3@gmail.com> | 2016-12-03 20:16:03 +0100 |
---|---|---|
committer | Andreas Haas <liu.gam3@gmail.com> | 2016-12-03 20:16:03 +0100 |
commit | 4dd6bead1fc5cfe264e24964f9da0d35bc74b3ee (patch) | |
tree | 1853f7890ee09254974180ab0ba815be30e2cb81 /scene | |
parent | 4d8bed33215c005f6aa6fcb34d5d343ee3bee23e (diff) |
Particles2D: Fix initial size randomness property having no effect.
It was just a little typo :p
Diffstat (limited to 'scene')
-rw-r--r-- | scene/2d/particles_2d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/particles_2d.cpp b/scene/2d/particles_2d.cpp index 29dad630d6..3101f616d6 100644 --- a/scene/2d/particles_2d.cpp +++ b/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 size_mult=initial_size*(1.0-ptime) + final_size*ptime; |