From a77933060a2da15557818ae03326eb77945e4b65 Mon Sep 17 00:00:00 2001 From: samuelOsborne Date: Tue, 18 Jul 2023 17:17:01 +0200 Subject: [PATCH] feat: added resetSegments to worker_wrapper --- player/js/worker_wrapper.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/player/js/worker_wrapper.js b/player/js/worker_wrapper.js index af701319f..76798a2de 100644 --- a/player/js/worker_wrapper.js +++ b/player/js/worker_wrapper.js @@ -530,6 +530,10 @@ function workerContent() { if (animations[payload.id]) { animations[payload.id].animation.playSegments(payload.arr, payload.forceFlag); } + } else if (type === 'resetSegments') { + if (animations[payload.id]) { + animations[payload.id].animation.resetSegments(payload.forceFlag); + } } else if (type === 'updateDocumentData') { animations[payload.id].animation.updateDocumentData(payload.path, payload.documentData, payload.index); }