소스 검색

Merge pull request #16899 from Mugen87/dev34

Quaternion: Add missing call of _onChangeCallback in slerp().
WestLangley 6 년 전
부모
커밋
bf2e5479da
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;
 
 		}