[ts][pixi] Fix not working alpha channel in mesh animations (#2439)

This commit is contained in:
Vadim Goncharov 2024-01-08 02:35:47 +03:00 committed by GitHub
parent dfec98895f
commit 43d2564b0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -99,6 +99,7 @@ export class SlotMesh extends Mesh implements ISlotMesh {
SlotMesh.auxColor[3] = finalVertices[5];
this.tint = SlotMesh.auxColor;
this.alpha = SlotMesh.auxColor[3];
this.blendMode = SpineTexture.toPixiBlending(slotBlendMode);
if (this.geometry.indexBuffer.data.length !== finalIndices.length) {