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

Commit

Permalink
fix: clipping termination on same slot, always set dirty when vertex …
Browse files Browse the repository at this point in the history
…count change (see #33). (#34)
  • Loading branch information
davidetan authored Aug 22, 2024
1 parent 1016ec0 commit 8708c9b
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions src/Spine.ts
Original file line number Diff line number Diff line change
Expand Up @@ -442,14 +442,11 @@ export class Spine extends Container implements View
else if (attachment instanceof ClippingAttachment)
{
clipper.clipStart(slot, attachment);
}
else
{
clipper.clipEndWithSlot(slot);
continue;
}
}
clipper.clipEndWithSlot(slot);
}

clipper.clipEnd();
}

Expand Down Expand Up @@ -492,7 +489,7 @@ export class Spine extends Container implements View

cacheData.skipRender = verticesCount === 0;

if (sizeChange && !cacheData.skipRender)
if (sizeChange)
{
this.spineAttachmentsDirty = true;

Expand Down

0 comments on commit 8708c9b

Please sign in to comment.