Преглед на файлове

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

camnewnham преди 4 години
родител
ревизия
a78005a884
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  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;