Browse Source

[unity] Fixed clipping end attachment ignored when alpha is 0. Closes #2623.

Harald Csaszar 1 year ago
parent
commit
fbcc080e7e

+ 1 - 1
spine-unity/Assets/Spine/Runtime/spine-unity/Mesh Generation/MeshGenerator.cs

@@ -364,7 +364,7 @@ namespace Spine.Unity {
 				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;

+ 1 - 1
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",