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

This commit is contained in:
Harald Csaszar 2021-11-15 16:12:11 +01:00
parent fe635d9a79
commit 506a1abf53

View File

@ -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;