2
0
Michael Herzog 9 жил өмнө
parent
commit
667993657a

+ 2 - 3
src/animation/AnimationClip.js

@@ -266,7 +266,7 @@ Object.assign( THREE.AnimationClip, {
 			var animationKeys = hierarchyTracks[ h ].keys;
 			var animationKeys = hierarchyTracks[ h ].keys;
 
 
 			// skip empty tracks
 			// skip empty tracks
-			if ( ! animationKeys || animationKeys.length == 0 ) continue;
+			if ( ! animationKeys || animationKeys.length === 0 ) continue;
 
 
 			// process morph targets in a way exactly compatible
 			// process morph targets in a way exactly compatible
 			// with AnimationHandler.init( animation )
 			// with AnimationHandler.init( animation )
@@ -301,7 +301,7 @@ Object.assign( THREE.AnimationClip, {
 						var animationKey = animationKeys[k];
 						var animationKey = animationKeys[k];
 
 
 						times.push( animationKey.time );
 						times.push( animationKey.time );
-						values.push( ( animationKey.morphTarget === morphTargetName ) ? 1 : 0 )
+						values.push( ( animationKey.morphTarget === morphTargetName ) ? 1 : 0 );
 
 
 					}
 					}
 
 
@@ -346,4 +346,3 @@ Object.assign( THREE.AnimationClip, {
 	}
 	}
 
 
 } );
 } );
-

+ 2 - 3
src/animation/AnimationMixer.js

@@ -291,7 +291,7 @@ THREE.AnimationMixer._Action =
 
 
 		var interpolant = tracks[ i ].createInterpolant( null );
 		var interpolant = tracks[ i ].createInterpolant( null );
 		interpolants[ i ] = interpolant;
 		interpolants[ i ] = interpolant;
-		interpolant.settings = interpolantSettings
+		interpolant.settings = interpolantSettings;
 
 
 	}
 	}
 
 
@@ -377,7 +377,7 @@ THREE.AnimationMixer._Action.prototype = {
 		var start = this._startTime;
 		var start = this._startTime;
 
 
 		return this.enabled && ! this.paused && this.timeScale !== 0 &&
 		return this.enabled && ! this.paused && this.timeScale !== 0 &&
-				this._startTime === null && this._mixer._isActiveAction( this )
+				this._startTime === null && this._mixer._isActiveAction( this );
 
 
 	},
 	},
 
 
@@ -1396,4 +1396,3 @@ Object.assign( THREE.AnimationMixer.prototype, {
 	_controlInterpolantsResultBuffer: new Float32Array( 1 )
 	_controlInterpolantsResultBuffer: new Float32Array( 1 )
 
 
 } );
 } );
-

+ 2 - 2
src/animation/KeyframeTrack.js

@@ -62,7 +62,7 @@ THREE.KeyframeTrack.prototype = {
 
 
 	setInterpolation: function( interpolation ) {
 	setInterpolation: function( interpolation ) {
 
 
-		var factoryMethod = undefined;
+		var factoryMethod;
 
 
 		switch ( interpolation ) {
 		switch ( interpolation ) {
 
 
@@ -486,7 +486,7 @@ Object.assign( THREE.KeyframeTrack, {
 
 
 				return THREE.StringKeyframeTrack;
 				return THREE.StringKeyframeTrack;
 
 
-		};
+		}
 
 
 		throw new Error( "Unsupported typeName: " + typeName );
 		throw new Error( "Unsupported typeName: " + typeName );
 
 

+ 1 - 1
src/animation/PropertyBinding.js

@@ -645,4 +645,4 @@ THREE.PropertyBinding.findNode = function( root, nodeName ) {
 
 
 	return null;
 	return null;
 
 
-}
+};