Browse Source

Merge pull request #14909 from Itee/fix_isQuaternion

Fix wrong place of isQuaternion property
Mr.doob 6 years ago
parent
commit
338bb1b3a5
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/math/Quaternion.js

+ 2 - 2
src/math/Quaternion.js

@@ -19,8 +19,6 @@ function Quaternion( x, y, z, w ) {
 
 Object.assign( Quaternion, {
 
-	isQuaternion: true,
-
 	slerp: function ( qa, qb, qm, t ) {
 
 		return qm.copy( qa ).slerp( qb, t );
@@ -165,6 +163,8 @@ Object.defineProperties( Quaternion.prototype, {
 
 Object.assign( Quaternion.prototype, {
 
+	isQuaternion: true,
+
 	set: function ( x, y, z, w ) {
 
 		this._x = x;