Skip to content

Commit a002b21

Browse files
committed
Fixed CPUParticles3D using angle incorrectly when ROTATE_Y is set.
1 parent 68ad520 commit a002b21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scene/3d/cpu_particles_3d.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,7 @@ void CPUParticles3D::_particles_process(double p_delta) {
11241124
//turn particle by rotation in Y
11251125
if (particle_flags[PARTICLE_FLAG_ROTATE_Y]) {
11261126
Basis rot_y(Vector3(0, 1, 0), p.custom[0]);
1127-
p.transform.basis = p.transform.basis * rot_y;
1127+
p.transform.basis = rot_y;
11281128
}
11291129
}
11301130

0 commit comments

Comments
 (0)