[ts][pixi-v8] Fix skipRender regression introduced in 4.2.90. See #2912.

This commit is contained in:
Davide Tantillo 2025-09-15 17:36:36 +02:00
parent de81263377
commit f40ecd9933

View File

@ -667,8 +667,11 @@ export class Spine extends ViewContainer {
const alpha = skeletonColor.a * slotColor.a * attachmentColor.a;
if (this.alpha === 0 || alpha === 0) {
if (!cacheData.skipRender) this.spineAttachmentsDirty = true;
cacheData.skipRender = true;
} else {
if (cacheData.skipRender) this.spineAttachmentsDirty = true;
cacheData.skipRender = cacheData.clipped = false;
cacheData.color.set(
skeletonColor.r * slotColor.r * attachmentColor.r,
@ -681,8 +684,6 @@ export class Spine extends ViewContainer {
cacheData.darkColor.setFromColor(pose.darkColor);
}
cacheData.skipRender = cacheData.clipped = false;
const texture = attachment.region?.texture.texture || Texture.EMPTY;
if (cacheData.texture !== texture) {