Stop all animations and clear mixers in RuntimeHost

This commit is contained in:
2026-04-01 00:07:30 +02:00
parent 2f9097b3f2
commit a706bd2df8

View File

@@ -441,6 +441,12 @@ export class RuntimeHost {
}
private clearModelInstances() {
for (const mixer of this.animationMixers.values()) {
mixer.stopAllAction();
}
this.animationMixers.clear();
this.instanceAnimationClips.clear();
for (const renderGroup of this.modelRenderObjects.values()) {
this.modelGroup.remove(renderGroup);
disposeModelInstance(renderGroup);