瀏覽代碼

AnimationMixer: Move _controlInterpolantsResultBuffer back to prototype

Ian Purvis 4 年之前
父節點
當前提交
feddda467a
共有 1 個文件被更改,包括 1 次插入3 次删除
  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 };