mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-04 22:34:53 +08:00
[ts][pixi-v8] Fix skipRender regression introduced in 4.2.90. See #2912.
This commit is contained in:
parent
de81263377
commit
f40ecd9933
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user