From 13a0a6827513d04b7fd6c816e9ddb748fd6655bf Mon Sep 17 00:00:00 2001 From: Davide Tantillo Date: Thu, 28 Nov 2024 11:05:59 +0100 Subject: [PATCH] [ts][pixi-v8] Aligned bounds to pixi 8.6 updates. --- spine-ts/spine-pixi-v8/src/Spine.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/spine-ts/spine-pixi-v8/src/Spine.ts b/spine-ts/spine-pixi-v8/src/Spine.ts index 19487d4e4..ced562b75 100644 --- a/spine-ts/spine-pixi-v8/src/Spine.ts +++ b/spine-ts/spine-pixi-v8/src/Spine.ts @@ -268,7 +268,7 @@ export class Spine extends ViewContainer { this._updateAndApplyState(deltaSeconds ?? Ticker.shared.deltaMS / 1000); } - get bounds () { + override get bounds () { if (this._boundsDirty) { this.updateBounds(); } @@ -689,8 +689,7 @@ export class Spine extends ViewContainer { protected onViewUpdate () { // increment from the 12th bit! - this._didChangeId += 1 << 12; - + this._didViewChangeTick++; this._boundsDirty = true; if (this.didViewUpdate) return; @@ -780,7 +779,7 @@ export class Spine extends ViewContainer { return this._slotsObject[slot.data.name]?.container; } - private updateBounds () { + protected updateBounds () { this._boundsDirty = false; this.skeletonBounds ||= new SkeletonBounds();