浏览代码

Merge branch '3.6' of https://github.com/EsotericSoftware/spine-runtimes into 3.6

pharan 7 年之前
父节点
当前提交
7d90095aca
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-c/spine-c/src/spine/VertexAttachment.c

+ 1 - 1
spine-c/spine-c/src/spine/VertexAttachment.c

@@ -51,7 +51,7 @@ void spVertexAttachment_computeWorldVertices (spVertexAttachment* self, spSlot*
 	float* vertices;
 	float* vertices;
 	int* bones;
 	int* bones;
 
 
-	count += offset;
+	count = offset + (count >> 1) * stride;
 	skeleton = slot->bone->skeleton;
 	skeleton = slot->bone->skeleton;
 	deformLength = slot->attachmentVerticesCount;
 	deformLength = slot->attachmentVerticesCount;
 	deform = slot->attachmentVertices;
 	deform = slot->attachmentVertices;