Browse Source

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

camnewnham 4 years ago
parent
commit
a78005a884
1 changed files with 1 additions and 1 deletions
  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;