aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Haas2016-12-03 20:16:03 +0100
committerRémi Verschelde2017-01-12 19:15:27 +0100
commit01f3399ed09221ff3052bb0183a3048137dfc1e6 (patch)
tree81861e3858879aef14f99126b82c0597187666bb
parent1e34e8d5e1c850f6c535387d2f15f3e16c39bc92 (diff)
downloadgodot-01f3399ed09221ff3052bb0183a3048137dfc1e6.tar.gz
godot-01f3399ed09221ff3052bb0183a3048137dfc1e6.tar.zst
godot-01f3399ed09221ff3052bb0183a3048137dfc1e6.zip
Particles2D: Fix initial size randomness property having no effect.
It was just a little typo :p (cherry picked from commit 4dd6bead1fc5cfe264e24964f9da0d35bc74b3ee)
-rw-r--r--scene/2d/particles_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/particles_2d.cpp b/scene/2d/particles_2d.cpp
index 29dad630d..3101f616d 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;