Sfoglia il codice sorgente

fix potential null reference.

Ben Houston 10 anni fa
parent
commit
1cefeae8a1
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      src/loaders/ObjectLoader.js

+ 1 - 1
src/loaders/ObjectLoader.js

@@ -627,7 +627,7 @@ THREE.ObjectLoader.prototype = {
 
 			}
 
-			if( data.animations ) {
+			if( data.animations && data.animations.tracks ) {
 
 				var dataTracks = data.animations.tracks;
 

粤ICP备19079148号