[ts][pixi-v8] Fix currentClippingSlot not reset. Close #2757.

This commit is contained in:
Davide Tantillo 2025-02-20 12:56:12 +01:00
parent d11564b156
commit da1ab49291

View File

@ -560,6 +560,7 @@ export class Spine extends ViewContainer {
this.spineAttachmentsDirty ||= spineAttachmentsDirty;
}
private currentClippingSlot: SlotsToClipping | undefined;
private updateAndSetPixiMask (slot: Slot, last: boolean) {
// assign/create the currentClippingSlot
const attachment = slot.attachment;
@ -614,10 +615,10 @@ export class Spine extends ViewContainer {
clippingSlotToPixiMask.mask = undefined;
}
}
this.currentClippingSlot = undefined;
}
}
private currentClippingSlot: SlotsToClipping | undefined;
private transformAttachments () {
const currentDrawOrder = this.skeleton.drawOrder;