فهرست منبع

Merge pull request #14909 from Itee/fix_isQuaternion

Fix wrong place of isQuaternion property
Mr.doob 6 سال پیش
والد
کامیت
338bb1b3a5
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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;