瀏覽代碼

Fixed CPUParticles3D using angle incorrectly when ROTATE_Y is set.

Apples 1 年之前
父節點
當前提交
a002b212df
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      scene/3d/cpu_particles_3d.cpp

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

@@ -1124,7 +1124,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;
 			}
 		}