summaryrefslogtreecommitdiff
path: root/scene/2d
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-01-22 12:19:00 +0100
committerGitHub <noreply@github.com>2019-01-22 12:19:00 +0100
commit7c8f55f8573bb0b86425cf6e623fe3da5891f0ff (patch)
tree59d2196cdbe7ea311845243ef7346a15944a1d2a /scene/2d
parent8cc83accd3efa109cc37b81a04f822e01deda6e2 (diff)
parentfbde8516418ac42a68ae13d5cb5968a78d29b6dd (diff)
Merge pull request #25207 from clayjohn/cpu_particle_2d_aligny_bug
Fix bug with CpuParticles2D AlignY
Diffstat (limited to 'scene/2d')
-rw-r--r--scene/2d/cpu_particles_2d.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/2d/cpu_particles_2d.cpp b/scene/2d/cpu_particles_2d.cpp
index 7ace37aaf3..21feb6e226 100644
--- a/scene/2d/cpu_particles_2d.cpp
+++ b/scene/2d/cpu_particles_2d.cpp
@@ -840,7 +840,7 @@ void CPUParticles2D::_particles_process(float p_delta) {
if (flags[FLAG_ALIGN_Y_TO_VELOCITY]) {
if (p.velocity.length() > 0.0) {
- p.transform.elements[0] = p.velocity.normalized();
+ p.transform.elements[1] = p.velocity.normalized();
p.transform.elements[0] = p.transform.elements[1].tangent();
}