瀏覽代碼

Fix dropped interpolator in validation.

Don McCurdy 8 年之前
父節點
當前提交
d68189d11b
共有 1 個文件被更改,包括 1 次插入1 次删除
  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 );