Kaynağa Gözat

AnimationMixer: Move _controlInterpolantsResultBuffer back to prototype

Ian Purvis 4 yıl önce
ebeveyn
işleme
feddda467a
1 değiştirilmiş dosya ile 1 ekleme ve 3 silme
  1. 1 3
      src/animation/AnimationMixer.js

+ 1 - 3
src/animation/AnimationMixer.js

@@ -15,10 +15,7 @@ class AnimationMixer extends EventDispatcher {
 		this._root = root;
 		this._initMemoryManager();
 		this._accuIndex = 0;
-		this._controlInterpolantsResultBuffer = new Float32Array( 1 );
-
 		this.time = 0;
-
 		this.timeScale = 1.0;
 
 	}
@@ -765,5 +762,6 @@ class AnimationMixer extends EventDispatcher {
 
 }
 
+AnimationMixer.prototype._controlInterpolantsResultBuffer = new Float32Array( 1 );
 
 export { AnimationMixer };