Skip to content

Commit

Permalink
Assign extras to texture in GLTFLoader
Browse files Browse the repository at this point in the history
  • Loading branch information
harrycollin committed Apr 26, 2024
1 parent a6130f8 commit 2e80cba
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions examples/jsm/loaders/GLTFLoader.js
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 2e80cba

Please sign in to comment.