소스 검색

GLTFLoader: Assign extras to texture. (#28226)

* Assign extras to texture in GLTFLoader

* Update GLTFLoader.js

Clean up.

---------

Co-authored-by: Michael Herzog <[email protected]>
Harry Collin 1 년 전
부모
커밋
15963cdeb6
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      examples/jsm/loaders/GLTFLoader.js

+ 2 - 0
examples/jsm/loaders/GLTFLoader.js

@@ -3317,6 +3317,8 @@ class GLTFParser {
 
 			}
 
+			assignExtrasToUserData( texture, sourceDef );
+
 			texture.userData.mimeType = sourceDef.mimeType || getImageURIMimeType( sourceDef.uri );
 
 			return texture;