From 7400da8896e0f719a9e2ca0d41cee5e4ddd2818c Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Tue, 21 Dec 2021 13:04:34 +0100 Subject: [PATCH] [unity] Fixed BoundingBoxFollowerGraphic vertices being 0.0 in some occasions, closes #1999. Problem introduced in commit 506a1ab, see issue #1990. --- .../Spine/Runtime/spine-unity/Utility/SkeletonExtensions.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Utility/SkeletonExtensions.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Utility/SkeletonExtensions.cs index 28e33639b..ee928c543 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Utility/SkeletonExtensions.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Utility/SkeletonExtensions.cs @@ -233,7 +233,7 @@ namespace Spine.Unity { buffer = buffer ?? new Vector2[bufferTargetSize]; if (buffer.Length < bufferTargetSize) throw new System.ArgumentException(string.Format("Vector2 buffer too small. {0} requires an array of size {1}. Use the attachment's .WorldVerticesLength to get the correct size.", va.Name, floatsCount), "buffer"); - if (va.Bones == null && va.DeformAttachment == null) { + if (va.Bones == null && slot.Deform.Count == 0) { var localVerts = va.Vertices; for (int i = 0; i < bufferTargetSize; i++) { int j = i * 2; @@ -299,7 +299,6 @@ namespace Spine.Unity { namespace Spine { using System; - using System.Collections.Generic; public struct BoneMatrix { public float a, b, c, d, x, y;