瀏覽代碼

Quaternion: Add missing call of _onChangeCallback in slerp().

Mugen87 6 年之前
父節點
當前提交
6241186533
共有 1 個文件被更改,包括 4 次插入1 次删除
  1. 4 1
      src/math/Quaternion.js

+ 4 - 1
src/math/Quaternion.js

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