Explorar el Código

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

camnewnham hace 4 años
padre
commit
a78005a884
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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 );
 
-		if ( texture.image !== undefined ) {
+		if ( texture?.image !== undefined ) {
 
 			return texture;