Browse Source

FBXLoader: Check for null textures before assignment (#22239)

camnewnham 4 năm trước cách đây
mục cha
commit
a78005a884
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      examples/jsm/loaders/FBXLoader.js

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

@@ -698,7 +698,7 @@ class FBXTreeParser {
 
 
 		const texture = textureMap.get( id );
 		const texture = textureMap.get( id );
 
 
-		if ( texture.image !== undefined ) {
+		if ( texture?.image !== undefined ) {
 
 
 			return texture;
 			return texture;