Browse Source

Merge pull request #89595 from apples/89559-cpuparticles3d-angle-rotate_y-fix

Fix `CPUParticles3D` using angle incorrectly when `ROTATE_Y` is set.
Rémi Verschelde 1 year ago
parent
commit
16eb8dbdc0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      scene/3d/cpu_particles_3d.cpp

+ 1 - 1
scene/3d/cpu_particles_3d.cpp

@@ -1125,7 +1125,7 @@ void CPUParticles3D::_particles_process(double p_delta) {
 			//turn particle by rotation in Y
 			if (particle_flags[PARTICLE_FLAG_ROTATE_Y]) {
 				Basis rot_y(Vector3(0, 1, 0), p.custom[0]);
-				p.transform.basis = p.transform.basis * rot_y;
+				p.transform.basis = rot_y;
 			}
 		}