Browse Source

remvoe debug comments, and a forgotten reset of propertyBindingNamesToIndex.

Ben Houston 10 years ago
parent
commit
3bfc0b1d71
2 changed files with 4 additions and 8 deletions
  1. 2 8
      src/animation/AnimationAction.js
  2. 2 0
      src/animation/AnimationMixer.js

+ 2 - 8
src/animation/AnimationAction.js

@@ -51,11 +51,7 @@ THREE.AnimationAction.prototype = {
 		var duration = this.clip.duration;
 
 		this.actionTime = this.actionTime + clipDeltaTime * this.timeScale;
-		console.log( 'actionTime1', this.actionTime );
-		console.log( 'clipDeltaTime', clipDeltaTime );
-		console.log( 'this.timeScale', this.timeScale );
-		console.log( 'duration', duration );
-
+	
 		if( this.loop === THREE.LoopOnce ) {
 
 			this.loopCount = 0;
@@ -99,9 +95,7 @@ THREE.AnimationAction.prototype = {
 
 		this.clipTime = newClipTime;
 
-		console.log( 'actionTime', this.actionTime, 'loopCount', this.loopCount, 'clipTime', this.clipTime );
-
-   		if( this.loopCount !== previousLoopCount ) {
+		if( this.loopCount !== previousLoopCount ) {
 
    			this.mixer.dispatchEvent( { type: 'loop', action: this, loopDelta: ( this.loopCount - this.loopCount ) } );
 

+ 2 - 0
src/animation/AnimationMixer.js

@@ -113,6 +113,7 @@ THREE.AnimationMixer.prototype = {
 
 		this.actions = [];
 		this.propertyBindings = [];
+		this.propertyBindingNamesToIndex = {};
 
 		return this;
 
@@ -151,6 +152,7 @@ THREE.AnimationMixer.prototype = {
 			}
 		}
 
+		
 		this.propertyBindingIndicesDirty = true;
 
 		return this;