浏览代码

FBXLoader: Switched texture check to old syntax.

Mr.doob 4 年之前
父节点
当前提交
a49cd802c5
共有 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 );
 		const texture = textureMap.get( id );
 
 
-		if ( texture?.image !== undefined ) {
+		if ( texture !== undefined && texture.image !== undefined ) {
 
 
 			return texture;
 			return texture;