Browse Source

Merge pull request #3244 from sebavan/master

cleanup
sebavan 7 years ago
parent
commit
442678e7ca
1 changed files with 0 additions and 1 deletions
  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 pitch = Math.atan2(dv.y, len);
             if (this.rotationQuaternion) {
-                this.rotationQuaternion = this.rotationQuaternion || new Quaternion();
                 Quaternion.RotationYawPitchRollToRef(yaw + yawCor, pitch + pitchCor, rollCor, this.rotationQuaternion);
             }
             else {