2
0
Эх сурвалжийг харах

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

camnewnham 4 жил өмнө
parent
commit
a78005a884

+ 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;