Sfoglia il codice sorgente

Fixed the unpausing of animations that are not playing.

michael 11 anni fa
parent
commit
69c1e37358
1 ha cambiato i file con 6 aggiunte e 6 eliminazioni
  1. 6 6
      examples/js/BlendCharacter.js

+ 6 - 6
examples/js/BlendCharacter.js

@@ -204,17 +204,17 @@ THREE.BlendCharacter = function () {
 
 	this.unPauseAll = function() {
 
-		for ( var a in this.animations ) {
+    for ( var a in this.animations ) {
 
-			if ( this.animations[ a ].isPaused ) {
+      if ( this.animations[ a ].isPlaying && this.animations[ a ].isPaused ) {
 
-				this.animations[ a ].pause();
+        this.animations[ a ].pause();
 
-			}
+      }
 
-		}
+    }
 
-	};
+  };
 
 
 	this.stopAll = function() {