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

fix: clipping termination on same slot, always set dirty when vertex … #34

Merged
merged 1 commit into from
Aug 22, 2024
Merged
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
fix: clipping termination on same slot, always set dirty when vertex …
…count change (see #33).

If not set dirty when vertex count changes, the latest vertices would be shown.
  • Loading branch information
davidetan committed Aug 7, 2024
commit 7e2f7265cbf8900f74a9d794b892619be68aa013
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
Loading