[ts][pixi-v8] Aligned bounds to pixi 8.6 updates.

This commit is contained in:
Davide Tantillo 2024-11-28 11:05:59 +01:00
parent 1da920ad74
commit 13a0a68275

View File

@ -268,7 +268,7 @@ export class Spine extends ViewContainer {
this._updateAndApplyState(deltaSeconds ?? Ticker.shared.deltaMS / 1000); this._updateAndApplyState(deltaSeconds ?? Ticker.shared.deltaMS / 1000);
} }
get bounds () { override get bounds () {
if (this._boundsDirty) { if (this._boundsDirty) {
this.updateBounds(); this.updateBounds();
} }
@ -689,8 +689,7 @@ export class Spine extends ViewContainer {
protected onViewUpdate () { protected onViewUpdate () {
// increment from the 12th bit! // increment from the 12th bit!
this._didChangeId += 1 << 12; this._didViewChangeTick++;
this._boundsDirty = true; this._boundsDirty = true;
if (this.didViewUpdate) return; if (this.didViewUpdate) return;
@ -780,7 +779,7 @@ export class Spine extends ViewContainer {
return this._slotsObject[slot.data.name]?.container; return this._slotsObject[slot.data.name]?.container;
} }
private updateBounds () { protected updateBounds () {
this._boundsDirty = false; this._boundsDirty = false;
this.skeletonBounds ||= new SkeletonBounds(); this.skeletonBounds ||= new SkeletonBounds();