瀏覽代碼

Fix #18986

- Add null check for UV property in UVNode
John Marinelli 5 年之前
父節點
當前提交
abe77269e4
共有 1 個文件被更改,包括 6 次插入1 次删除
  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 ++;
 
 				}