mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
Fixed spine-unity.
This commit is contained in:
parent
22fabe8769
commit
fbbe262a39
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user