@mml-io/3d-web-client-core 0.0.0-experimental-2a37862-20240710 → 0.0.0-experimental-f0a158e-20240717

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
@@ -1481,6 +1481,9 @@ var Character = class extends Group {
1481
1481
  }
1482
1482
  async load() {
1483
1483
  const previousModel = this.model;
1484
+ if (previousModel && previousModel.mesh) {
1485
+ this.remove(previousModel.mesh);
1486
+ }
1484
1487
  this.model = new CharacterModel({
1485
1488
  characterDescription: this.config.characterDescription,
1486
1489
  animationConfig: this.config.animationConfig,
@@ -1490,9 +1493,6 @@ var Character = class extends Group {
1490
1493
  isLocal: this.config.isLocal
1491
1494
  });
1492
1495
  await this.model.init();
1493
- if (previousModel && previousModel.mesh) {
1494
- this.remove(previousModel.mesh);
1495
- }
1496
1496
  this.add(this.model.mesh);
1497
1497
  if (this.speakingIndicator === null) {
1498
1498
  this.speakingIndicator = new CharacterSpeakingIndicator(this.config.composer.postPostScene);