@mml-io/3d-web-client-core 0.0.0-experimental-0de38c6-20240518 → 0.0.0-experimental-26809cc-20240518

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/build/index.js CHANGED
@@ -764,22 +764,24 @@ var _CharacterModel = class _CharacterModel {
764
764
  }
765
765
  async init() {
766
766
  await this.loadMainMesh();
767
- await this.setAnimationFromFile(
768
- this.config.animationConfig.idleAnimationFileUrl,
769
- 0 /* idle */
770
- );
771
- await this.setAnimationFromFile(
772
- this.config.animationConfig.jogAnimationFileUrl,
773
- 1 /* walking */
774
- );
775
- await this.setAnimationFromFile(
776
- this.config.animationConfig.sprintAnimationFileUrl,
777
- 2 /* running */
778
- );
779
- await this.setAnimationFromFile(
780
- this.config.animationConfig.airAnimationFileUrl,
781
- 4 /* air */
782
- );
767
+ await Promise.all([
768
+ this.setAnimationFromFile(
769
+ this.config.animationConfig.idleAnimationFileUrl,
770
+ 0 /* idle */
771
+ ),
772
+ this.setAnimationFromFile(
773
+ this.config.animationConfig.jogAnimationFileUrl,
774
+ 1 /* walking */
775
+ ),
776
+ this.setAnimationFromFile(
777
+ this.config.animationConfig.sprintAnimationFileUrl,
778
+ 2 /* running */
779
+ ),
780
+ this.setAnimationFromFile(
781
+ this.config.animationConfig.airAnimationFileUrl,
782
+ 4 /* air */
783
+ )
784
+ ]);
783
785
  this.applyCustomMaterials();
784
786
  }
785
787
  applyCustomMaterials() {