diff --git a/src/patchmap.js b/src/patchmap.js index 2251ae3f..406cf93a 100644 --- a/src/patchmap.js +++ b/src/patchmap.js @@ -1,3 +1,4 @@ +import gsap from 'gsap'; import { Application, Assets } from 'pixi.js'; import { isValidationError } from 'zod-validation-error'; import { undoRedoManager } from './command'; @@ -83,6 +84,7 @@ class Patchmap { } destroy() { + gsap.globalTimeline.clear(); Assets.reset(); const parentElement = this.app.canvas.parentElement; this.viewport.destroy(true);