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

fix: textures change was not take into account #31

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/Spine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,7 @@ export class Spine extends Container implements View
if (attachment instanceof MeshAttachment || attachment instanceof RegionAttachment)
{
const cacheData = this._getCachedData(slot, attachment);
const previousAttachment = attachment.region?.texture.texture;

if (attachment instanceof RegionAttachment)
{
Expand All @@ -419,6 +420,8 @@ export class Spine extends Container implements View
);
}

if (attachment.region?.texture.texture !== previousAttachment) this.spineAttachmentsDirty = true;

cacheData.clipped = false;

if (clipper.isClipping())
Expand Down