From a706bd2df8bd1fa1dcf831e10104eebe843d9245 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 1 Apr 2026 00:07:30 +0200 Subject: [PATCH] Stop all animations and clear mixers in RuntimeHost --- src/runtime-three/runtime-host.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/runtime-three/runtime-host.ts b/src/runtime-three/runtime-host.ts index c6c830cd..070dff67 100644 --- a/src/runtime-three/runtime-host.ts +++ b/src/runtime-three/runtime-host.ts @@ -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);