Kaynağa Gözat

[unity] Fixed extension method `VertexAttachment.GetLocalVertices` ignoring deform timelines. Closes #1990.

Harald Csaszar 3 yıl önce
ebeveyn
işleme
506a1abf53

+ 1 - 1
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) {
+			if (va.Bones == null && va.DeformAttachment == null) {
 				var localVerts = va.Vertices;
 				for (int i = 0; i < bufferTargetSize; i++) {
 					int j = i * 2;