**Description** GLB files using Draco or KTX2 could not be uploaded as custom avatars. **To Reproduce** Steps to reproduce the behavior: 1. Go to a room 2. Click on 'Join room' 3. Click on 'Change Avatar' 4. Click on 'Create Avatar' 5. Click on 'Custom GLB' 6. Select draco/ktx2 GLB file 7. Click on 'Save' **Expected behavior** Uploading can be done without any errors. **Screenshots** [Screencast from 2023-08-14 11-23-19.webm](https://github.com/mozilla/hubs/assets/5345124/dadfc564-30a5-48a6-b8ea-018c88c08220) **Hardware** <!-- Please complete the following information --> - Device: Desktop - OS: Linux (Arch) - Browser: Firefox **Additional context** This problem is probably caused by the Loader not being set in the following code. https://github.com/mozilla/hubs/blob/master/src/react-components/avatar-editor.js#L153-L169
Description
GLB files using Draco or KTX2 could not be uploaded as custom avatars.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Uploading can be done without any errors.
Screenshots
Screencast.from.2023-08-14.11-23-19.webm
Hardware
Additional context
This problem is probably caused by the Loader not being set in the following code.
https://github.com/mozilla/hubs/blob/master/src/react-components/avatar-editor.js#L153-L169