Prechádzať zdrojové kódy

Merge pull request #10289 from donmccurdy/bug-clip-validation-dropped-frame

Fix dropped interpolator in glTF validation.
Mr.doob 8 rokov pred
rodič
commit
e5c84334c3
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  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 );