Explorar o código

Fix dropped interpolator in validation.

Don McCurdy %!s(int64=8) %!d(string=hai) anos
pai
achega
d68189d11b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ];
 
-			if (prevTime !== null && prevTime <= currTime) {
+			if ( prevTime === null || prevTime <= currTime ) {
 
 				times.push( currTime );