浏览代码

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