Skip to content

Commit 16eb8db

Browse files
committed
Merge pull request #89595 from apples/89559-cpuparticles3d-angle-rotate_y-fix
Fix `CPUParticles3D` using angle incorrectly when `ROTATE_Y` is set.
2 parents 1069d7b + a002b21 commit 16eb8db

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
@@ -1125,7 +1125,7 @@ void CPUParticles3D::_particles_process(double p_delta) {
11251125
//turn particle by rotation in Y
11261126
if (particle_flags[PARTICLE_FLAG_ROTATE_Y]) {
11271127
Basis rot_y(Vector3(0, 1, 0), p.custom[0]);
1128-
p.transform.basis = p.transform.basis * rot_y;
1128+
p.transform.basis = rot_y;
11291129
}
11301130
}
11311131

0 commit comments

Comments
 (0)