浏览代码

normalize in Quaternion.slerp

Mathieu Brédif 7 年之前
父节点
当前提交
dbe07203e6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/math/Quaternion.js

+ 1 - 1
src/math/Quaternion.js

@@ -543,7 +543,7 @@ Object.assign( Quaternion.prototype, {
 			this._y = s * y + t * this._y;
 			this._z = s * z + t * this._z;
 
-			return this;
+			return this.normalize();
 
 		}