From fbbe262a39627ab0bf6a429738062cb2d475f956 Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Wed, 29 May 2013 00:03:06 +0200 Subject: [PATCH] Fixed spine-unity. --- spine-unity/Assets/Plugins/Spine/SkeletonComponent.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-unity/Assets/Plugins/Spine/SkeletonComponent.cs b/spine-unity/Assets/Plugins/Spine/SkeletonComponent.cs index 385b3f576..8b10f24a6 100644 --- a/spine-unity/Assets/Plugins/Spine/SkeletonComponent.cs +++ b/spine-unity/Assets/Plugins/Spine/SkeletonComponent.cs @@ -128,7 +128,7 @@ public class SkeletonComponent : MonoBehaviour { if (attachment is RegionAttachment) { RegionAttachment regionAttachment = (RegionAttachment)attachment; - regionAttachment.ComputeVertices(slot.Bone, vertexPositions); + regionAttachment.ComputeVertices(skeleton.X, skeleton.Y, slot.Bone, vertexPositions); int vertexIndex = quadIndex * 4; vertices[vertexIndex] = new Vector3(vertexPositions[RegionAttachment.X1], vertexPositions[RegionAttachment.Y1], 0); vertices[vertexIndex + 1] = new Vector3(vertexPositions[RegionAttachment.X4], vertexPositions[RegionAttachment.Y4], 0);