Sfoglia il codice sorgente

Fix #18986

- Add null check for UV property in UVNode
John Marinelli 5 anni fa
parent
commit
abe77269e4
1 ha cambiato i file con 6 aggiunte e 1 eliminazioni
  1. 6 1
      examples/js/loaders/FBXLoader.js

+ 6 - 1
examples/js/loaders/FBXLoader.js

@@ -1726,7 +1726,12 @@ THREE.FBXLoader = ( function () {
 				var i = 0;
 				while ( geoNode.LayerElementUV[ i ] ) {
 
-					geoInfo.uv.push( this.parseUVs( geoNode.LayerElementUV[ i ] ) );
+					if ( geoNode.LayerElementUV[ i ].UV ) {
+
+						geoInfo.uv.push( this.parseUVs( geoNode.LayerElementUV[ i ] ) );
+
+					}
+
 					i ++;
 
 				}