networked-aframe / naf-valid-avatars

Example of using realistic animated avatars in networked-aframe.
https://naf-valid-avatars.glitch.me
MIT License
10 stars 0 forks source link

Race condition loading the animations #4

Closed vincentfretin closed 9 months ago

vincentfretin commented 9 months ago

I load the animations for the first avatar showing in the scene and then cache it. If a second avatar join the room while the animations are being loaded (this is just maybe 2 seconds), this starts to load again the animations instead of waiting the first execution to be done. Put that code in a Promise.