Sfoglia il codice sorgente

Fix dropped interpolator in validation.

Don McCurdy 8 anni fa
parent
commit
d68189d11b
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      examples/js/loaders/GLTFLoader.js

+ 1 - 1
examples/js/loaders/GLTFLoader.js

@@ -282,7 +282,7 @@ THREE.GLTFLoader = ( function () {
 
 
 			currTime = interp.times[ i ];
 			currTime = interp.times[ i ];
 
 
-			if (prevTime !== null && prevTime <= currTime) {
+			if ( prevTime === null || prevTime <= currTime ) {
 
 
 				times.push( currTime );
 				times.push( currTime );