mirror of
https://github.com/godotengine/godot.git
synced 2026-05-20 01:14:56 +00:00
7f60546f05
CPUParticles2D with Align Y turned on would update particles' transforms based on the velocity when velocity was non-zero, but would not set the transform for zero velocity. This left the transfrom value from the previous call, which may have already been scaled. In this case, each call to _particles_process would apply the scale again, causing the particle to repeatedly grow (or shrink for scales < 1.0). Updated the Align Y logic to always normalize the transform values before scale is applied.