mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-10 00:58:43 +08:00
[csharp] Added shifted vertex attachment IDs for DeformTimeline.
This commit is contained in:
parent
a8577b78a7
commit
14d031cb78
@ -743,7 +743,7 @@ namespace Spine {
|
||||
public VertexAttachment Attachment { get { return attachment; } set { attachment = value; } }
|
||||
|
||||
override public int PropertyId {
|
||||
get { return ((int)TimelineType.Deform << 24) + slotIndex; }
|
||||
get { return ((int)TimelineType.Deform << 24) + attachment.id + slotIndex; }
|
||||
}
|
||||
|
||||
public DeformTimeline (int frameCount)
|
||||
|
||||
@ -33,10 +33,15 @@ using System;
|
||||
namespace Spine {
|
||||
/// <summary>>An attachment with vertices that are transformed by one or more bones and can be deformed by a slot's vertices.</summary>
|
||||
public class VertexAttachment : Attachment {
|
||||
static int nextID = 0;
|
||||
|
||||
internal int id = (nextID++ & 65535) << 11;
|
||||
internal int[] bones;
|
||||
internal float[] vertices;
|
||||
internal int worldVerticesLength;
|
||||
|
||||
/// <summary>Gets a unique ID for this attachment.</summary>
|
||||
public int Id { get { return id; } }
|
||||
public int[] Bones { get { return bones; } set { bones = value; } }
|
||||
public float[] Vertices { get { return vertices; } set { vertices = value; } }
|
||||
public int WorldVerticesLength { get { return worldVerticesLength; } set { worldVerticesLength = value; } }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user