Skip to content

Commit

Permalink
feat: added resetSegments to worker_wrapper
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelOsborne committed Jul 18, 2023
1 parent 846dbf2 commit a779330
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions player/js/worker_wrapper.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a779330

Please sign in to comment.