From da1ab4929116792d232ad32e8437268f77422666 Mon Sep 17 00:00:00 2001 From: Davide Tantillo Date: Thu, 20 Feb 2025 12:56:12 +0100 Subject: [PATCH] [ts][pixi-v8] Fix currentClippingSlot not reset. Close #2757. --- spine-ts/spine-pixi-v8/src/Spine.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spine-ts/spine-pixi-v8/src/Spine.ts b/spine-ts/spine-pixi-v8/src/Spine.ts index 6870300ce..75afa9b56 100644 --- a/spine-ts/spine-pixi-v8/src/Spine.ts +++ b/spine-ts/spine-pixi-v8/src/Spine.ts @@ -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;