@mml-io/3d-web-client-core 0.0.0-experimental-8eb8acb-20240708 → 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 +4 -3
- package/build/index.js.map +2 -2
- package/package.json +3 -3
package/build/index.js
CHANGED
@@ -559,6 +559,7 @@ var CameraManager = class {
|
|
559
559
|
}
|
560
560
|
dispose() {
|
561
561
|
this.eventHandlerCollection.clear();
|
562
|
+
document.body.style.cursor = "";
|
562
563
|
}
|
563
564
|
easeOutExpo(x) {
|
564
565
|
return x === 1 ? 1 : 1 - Math.pow(2, -10 * x);
|
@@ -1480,6 +1481,9 @@ var Character = class extends Group {
|
|
1480
1481
|
}
|
1481
1482
|
async load() {
|
1482
1483
|
const previousModel = this.model;
|
1484
|
+
if (previousModel && previousModel.mesh) {
|
1485
|
+
this.remove(previousModel.mesh);
|
1486
|
+
}
|
1483
1487
|
this.model = new CharacterModel({
|
1484
1488
|
characterDescription: this.config.characterDescription,
|
1485
1489
|
animationConfig: this.config.animationConfig,
|
@@ -1489,9 +1493,6 @@ var Character = class extends Group {
|
|
1489
1493
|
isLocal: this.config.isLocal
|
1490
1494
|
});
|
1491
1495
|
await this.model.init();
|
1492
|
-
if (previousModel && previousModel.mesh) {
|
1493
|
-
this.remove(previousModel.mesh);
|
1494
|
-
}
|
1495
1496
|
this.add(this.model.mesh);
|
1496
1497
|
if (this.speakingIndicator === null) {
|
1497
1498
|
this.speakingIndicator = new CharacterSpeakingIndicator(this.config.composer.postPostScene);
|