mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[ts][pixi-v8] Fix: pixi v8 bug in validate renderables (#2717)
* Update SpinePipe.ts * fix a little spine issue
This commit is contained in:
parent
4fced40d61
commit
50e3b405b5
@ -377,6 +377,7 @@ export class Spine extends ViewContainer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private validateAttachments () {
|
private validateAttachments () {
|
||||||
|
|
||||||
const currentDrawOrder = this.skeleton.drawOrder;
|
const currentDrawOrder = this.skeleton.drawOrder;
|
||||||
|
|
||||||
const lastAttachments = this._lastAttachments;
|
const lastAttachments = this._lastAttachments;
|
||||||
@ -404,7 +405,7 @@ export class Spine extends ViewContainer {
|
|||||||
lastAttachments.length = index;
|
lastAttachments.length = index;
|
||||||
}
|
}
|
||||||
|
|
||||||
this.spineAttachmentsDirty = spineAttachmentsDirty;
|
this.spineAttachmentsDirty ||= spineAttachmentsDirty;
|
||||||
}
|
}
|
||||||
|
|
||||||
private updateAndSetPixiMask (slot: Slot, last: boolean) {
|
private updateAndSetPixiMask (slot: Slot, last: boolean) {
|
||||||
|
|||||||
@ -117,6 +117,9 @@ export class SpinePipe implements RenderPipe<Spine> {
|
|||||||
|
|
||||||
spine._validateAndTransformAttachments();
|
spine._validateAndTransformAttachments();
|
||||||
|
|
||||||
|
spine.spineAttachmentsDirty = false;
|
||||||
|
spine.spineTexturesDirty = false;
|
||||||
|
|
||||||
for (let i = 0, n = drawOrder.length; i < n; i++) {
|
for (let i = 0, n = drawOrder.length; i < n; i++) {
|
||||||
const slot = drawOrder[i];
|
const slot = drawOrder[i];
|
||||||
const attachment = slot.getAttachment();
|
const attachment = slot.getAttachment();
|
||||||
@ -155,6 +158,9 @@ export class SpinePipe implements RenderPipe<Spine> {
|
|||||||
|
|
||||||
spine._validateAndTransformAttachments();
|
spine._validateAndTransformAttachments();
|
||||||
|
|
||||||
|
spine.spineAttachmentsDirty = false;
|
||||||
|
spine.spineTexturesDirty = false;
|
||||||
|
|
||||||
const drawOrder = spine.skeleton.drawOrder;
|
const drawOrder = spine.skeleton.drawOrder;
|
||||||
|
|
||||||
for (let i = 0, n = drawOrder.length; i < n; i++) {
|
for (let i = 0, n = drawOrder.length; i < n; i++) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user