From fbcc080e7e45b3f576ba08640097acdda42f2df5 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Thu, 5 Sep 2024 18:04:39 +0200 Subject: [PATCH] [unity] Fixed clipping end attachment ignored when alpha is 0. Closes #2623. --- .../Spine/Runtime/spine-unity/Mesh Generation/MeshGenerator.cs | 2 +- spine-unity/Assets/Spine/package.json | 2 +- 2 files 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 36303dde80..8d01c43dc6 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 @@ -364,7 +364,7 @@ public static void GenerateSkeletonRendererInstruction (SkeletonRendererInstruct Slot slot = drawOrderItems[i]; if (!slot.Bone.Active #if SLOT_ALPHA_DISABLES_ATTACHMENT - || slot.A == 0f + || (slot.A == 0f && slot.Data != clippingEndSlot) #endif ) { workingAttachmentsItems[i] = null; diff --git a/spine-unity/Assets/Spine/package.json b/spine-unity/Assets/Spine/package.json index ccfb0254d7..97a3bff827 100644 --- a/spine-unity/Assets/Spine/package.json +++ b/spine-unity/Assets/Spine/package.json @@ -2,7 +2,7 @@ "name": "com.esotericsoftware.spine.spine-unity", "displayName": "spine-unity Runtime", "description": "This plugin provides the spine-unity runtime core.", - "version": "4.2.83", + "version": "4.2.84", "unity": "2018.3", "author": { "name": "Esoteric Software",