Skip to content
This repository has been archived by the owner on Nov 20, 2024. It is now read-only.

Commit

Permalink
change update cbs
Browse files Browse the repository at this point in the history
  • Loading branch information
Zyie committed Jun 7, 2024
1 parent ba3e344 commit 2e3fc12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Spine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,6 @@ export class Spine extends Container implements View
_updateState(time: number)
{
this.state.update(time);
this.beforeUpdateWorldTransforms(this);
this.skeleton.update(time);

this._stateChanged = true;
Expand Down Expand Up @@ -334,7 +333,9 @@ export class Spine extends Container implements View

this.state.apply(skeleton);

this.beforeUpdateWorldTransforms(this);
skeleton.updateWorldTransform(Physics.update);
this.afterUpdateWorldTransforms(this);

this.validateAttachments();

Expand Down

0 comments on commit 2e3fc12

Please sign in to comment.