Explorar o código

[unity] Fixed BoundingBoxFollowerGraphic vertices being 0.0 in some occasions, closes #1999. Problem introduced in commit 506a1ab, see issue #1990.

Harald Csaszar %!s(int64=3) %!d(string=hai) anos
pai
achega
7400da8896

+ 1 - 2
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;