Browse Source

AnimationMixer: remove unnecessary prototype access (#24036)

Marco Fugaro 3 years ago
parent
commit
7bce459f48
1 changed files with 5 additions and 3 deletions
  1. 5 3
      src/animation/AnimationMixer.js

+ 5 - 3
src/animation/AnimationMixer.js

@@ -6,6 +6,10 @@ import { PropertyMixer } from './PropertyMixer.js';
 import { AnimationClip } from './AnimationClip.js';
 import { AnimationClip } from './AnimationClip.js';
 import { NormalAnimationBlendMode } from '../constants.js';
 import { NormalAnimationBlendMode } from '../constants.js';
 
 
+
+const _controlInterpolantsResultBuffer = /*@__PURE__*/ new Float32Array( 1 );
+
+
 class AnimationMixer extends EventDispatcher {
 class AnimationMixer extends EventDispatcher {
 
 
 	constructor( root ) {
 	constructor( root ) {
@@ -478,7 +482,7 @@ class AnimationMixer extends EventDispatcher {
 
 
 			interpolant = new LinearInterpolant(
 			interpolant = new LinearInterpolant(
 				new Float32Array( 2 ), new Float32Array( 2 ),
 				new Float32Array( 2 ), new Float32Array( 2 ),
-				1, this._controlInterpolantsResultBuffer );
+				1, _controlInterpolantsResultBuffer );
 
 
 			interpolant.__cacheIndex = lastActiveIndex;
 			interpolant.__cacheIndex = lastActiveIndex;
 			interpolants[ lastActiveIndex ] = interpolant;
 			interpolants[ lastActiveIndex ] = interpolant;
@@ -763,6 +767,4 @@ class AnimationMixer extends EventDispatcher {
 
 
 }
 }
 
 
-AnimationMixer.prototype._controlInterpolantsResultBuffer = new Float32Array( 1 );
-
 export { AnimationMixer };
 export { AnimationMixer };