浏览代码

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;