Explorar o código

Merge pull request #3244 from sebavan/master

cleanup
sebavan %!s(int64=7) %!d(string=hai) anos
pai
achega
442678e7ca
Modificáronse 1 ficheiros con 0 adicións e 1 borrados
  1. 0 1
      src/Mesh/babylon.transformNode.ts

+ 0 - 1
src/Mesh/babylon.transformNode.ts

@@ -349,7 +349,6 @@ module BABYLON {
             var len = Math.sqrt(dv.x * dv.x + dv.z * dv.z);
             var len = Math.sqrt(dv.x * dv.x + dv.z * dv.z);
             var pitch = Math.atan2(dv.y, len);
             var pitch = Math.atan2(dv.y, len);
             if (this.rotationQuaternion) {
             if (this.rotationQuaternion) {
-                this.rotationQuaternion = this.rotationQuaternion || new Quaternion();
                 Quaternion.RotationYawPitchRollToRef(yaw + yawCor, pitch + pitchCor, rollCor, this.rotationQuaternion);
                 Quaternion.RotationYawPitchRollToRef(yaw + yawCor, pitch + pitchCor, rollCor, this.rotationQuaternion);
             }
             }
             else {
             else {