diff --git a/editor/src/marionette/preview.ts b/editor/src/marionette/preview.ts index f946ecdd70..42566e88fc 100644 --- a/editor/src/marionette/preview.ts +++ b/editor/src/marionette/preview.ts @@ -27,6 +27,11 @@ class AnimationGraphPartialPreviewer { this._dummyAnimationController.node.destroy(); } + public clear() { + this._varInstances = {}; + this._motionRecords = []; + } + public evaluate() { const { _evaluationContext: evaluationContext } = this; const pose = this.doEvaluate(evaluationContext);