summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2019-01-21 20:11:48 -0800
committerclayjohn <claynjohn@gmail.com>2019-01-21 20:11:48 -0800
commitfbde8516418ac42a68ae13d5cb5968a78d29b6dd (patch)
tree345da238e1b9a2c9758eeef1cd81a9dde65d086d
parentfdd7ed36bf8f23de6ecaae0ed0805ed9918b475b (diff)
fix bug with cpu_particle_2d_align_y
-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 36b900bf82..09d43476f1 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();
}