Browse Source

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 year ago
parent
commit
15963cdeb6
1 changed files with 2 additions and 0 deletions
  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 );
 			texture.userData.mimeType = sourceDef.mimeType || getImageURIMimeType( sourceDef.uri );
 
 
 			return texture;
 			return texture;