From e897dcafa5ac1659a3d5590778599b5808aee766 Mon Sep 17 00:00:00 2001 From: badlogic Date: Thu, 19 Jul 2018 16:53:59 +0200 Subject: [PATCH] [c] Closes #1148, count in vertex attachment computation was wrong when stride was <> 2. --- spine-c/spine-c/src/spine/VertexAttachment.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-c/spine-c/src/spine/VertexAttachment.c b/spine-c/spine-c/src/spine/VertexAttachment.c index 8b6dfea36..14087815e 100644 --- a/spine-c/spine-c/src/spine/VertexAttachment.c +++ b/spine-c/spine-c/src/spine/VertexAttachment.c @@ -51,7 +51,7 @@ void spVertexAttachment_computeWorldVertices (spVertexAttachment* self, spSlot* float* vertices; int* bones; - count += offset; + count = offset + (count >> 1) * stride; skeleton = slot->bone->skeleton; deformLength = slot->attachmentVerticesCount; deform = slot->attachmentVertices;