Sfoglia il codice sorgente

Merge pull request #16899 from Mugen87/dev34

Quaternion: Add missing call of _onChangeCallback in slerp().
WestLangley 6 anni fa
parent
commit
bf2e5479da
1 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  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;
 
 		}