From 6a77c6dbf22988855c3efca00a9bc8a550fa8803 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Tue, 2 Sep 2025 14:03:37 +0200 Subject: [PATCH] [unity] Fixed compile error after merging 4.2 commit. --- .../Runtime/spine-unity/Mesh Generation/MeshGenerator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Mesh Generation/MeshGenerator.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Mesh Generation/MeshGenerator.cs index 3cc6c2715..5dceeec1f 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Mesh Generation/MeshGenerator.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Mesh Generation/MeshGenerator.cs @@ -605,9 +605,10 @@ namespace Spine.Unity { for (int slotIndex = instruction.startSlot; slotIndex < instruction.endSlot; slotIndex++) { Slot slot = drawOrderItems[slotIndex]; SlotPose slotPose = slot.AppliedPose; + Color slotC = slotPose.GetColor(); if (!slot.Bone.Active #if SLOT_ALPHA_DISABLES_ATTACHMENT - || slot.A == 0f + || slotC.a == 0f #endif ) { clipper.ClipEnd(slot); @@ -663,7 +664,6 @@ namespace Spine.Unity { } float tintBlackAlpha = 1.0f; - Color slotC = slotPose.GetColor(); Color combinedC = skeletonC * slotC * regionC; if (pmaVertexColors) { float alpha = combinedC.a;