Explorar o código

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

camnewnham %!s(int64=4) %!d(string=hai) anos
pai
achega
a78005a884
Modificáronse 1 ficheiros con 1 adicións e 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;