Skip to content

Commit

Permalink
GLTFLoader: Assign extras to texture. (#28226)
Browse files Browse the repository at this point in the history
* Assign extras to texture in GLTFLoader

* Update GLTFLoader.js

Clean up.

---------

Co-authored-by: Michael Herzog <michael.herzog@human-interactive.org>
  • Loading branch information
harrycollin and Mugen87 authored Apr 29, 2024
1 parent 1f40200 commit 15963cd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/jsm/loaders/GLTFLoader.js
Original file line number Diff line number Diff line change
Expand Up @@ -3317,6 +3317,8 @@ class GLTFParser {

}

assignExtrasToUserData( texture, sourceDef );

texture.userData.mimeType = sourceDef.mimeType || getImageURIMimeType( sourceDef.uri );

return texture;
Expand Down

0 comments on commit 15963cd

Please sign in to comment.