Explorar o código

FBXLoader: Switched texture check to old syntax.

Mr.doob %!s(int64=4) %!d(string=hai) anos
pai
achega
a49cd802c5
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 !== undefined && texture.image !== undefined ) {
 
 			return texture;