Sfoglia il codice sorgente

Merge pull request #7356 from tiagopadua/fix_isNaN

fixed Number.isNaN
Mr.doob 9 anni fa
parent
commit
6376bc1ae2
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/animation/KeyframeTrack.js

+ 1 - 1
src/animation/KeyframeTrack.js

@@ -163,7 +163,7 @@ THREE.KeyframeTrack.prototype = {
 				return;
 				return;
 			}
 			}
 
 
-			if ( ( typeof currKey.time ) !== 'number' || Number.isNaN( currKey.time ) ) {
+			if ( ( typeof currKey.time ) !== 'number' || isNaN( currKey.time ) ) {
 				console.error( "  key.time is not a valid number", this, i, currKey );
 				console.error( "  key.time is not a valid number", this, i, currKey );
 				return;
 				return;
 			}
 			}