Pārlūkot izejas kodu

Quaternion: Remove redundant `_onChangeCallback` in `slerp()`. (#27365)

Michael Herzog 1 gadu atpakaļ
vecāks
revīzija
c476c0dd1b
1 mainītis faili ar 1 papildinājumiem un 2 dzēšanām
  1. 1 2
      src/math/Quaternion.js

+ 1 - 2
src/math/Quaternion.js

@@ -561,8 +561,7 @@ class Quaternion {
 			this._y = s * y + t * this._y;
 			this._z = s * z + t * this._z;
 
-			this.normalize();
-			this._onChangeCallback();
+			this.normalize(); // normalize calls _onChangeCallback()
 
 			return this;