Browse Source

Matrix4: Avoid using quaternion getters in makeRotationFromQuaternion().

Mr.doob 8 years ago
parent
commit
d8b3380c5d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/math/Matrix4.js

+ 1 - 1
src/math/Matrix4.js

@@ -282,7 +282,7 @@ Object.assign( Matrix4.prototype, {
 
 		var te = this.elements;
 
-		var x = q.x, y = q.y, z = q.z, w = q.w;
+		var x = q._x, y = q._y, z = q._z, w = q._w;
 		var x2 = x + x, y2 = y + y, z2 = z + z;
 		var xx = x * x2, xy = x * y2, xz = x * z2;
 		var yy = y * y2, yz = y * z2, zz = z * z2;