Skip to content

Commit

Permalink
Merge pull request #3015 from samuelOsborne/feat/worker-reset-segments
Browse files Browse the repository at this point in the history
feat: added resetSegments to worker_wrapper
  • Loading branch information
bodymovin committed Jul 18, 2023
2 parents 846dbf2 + a779330 commit 14dc0cb
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

1 comment on commit 14dc0cb

@samuelOsborne
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hey @bodymovin do you have a schedule on when this would be released ?

Please sign in to comment.