diff --git a/spine-csharp/src/Slot.cs b/spine-csharp/src/Slot.cs index 153f4804c..97c777354 100644 --- a/spine-csharp/src/Slot.cs +++ b/spine-csharp/src/Slot.cs @@ -45,7 +45,7 @@ namespace Spine { internal bool hasSecondColor; internal Attachment attachment; internal float attachmentTime; - internal ExposedList attachmentVertices = new ExposedList(); + internal ExposedList deform = new ExposedList(); public Slot (SlotData data, Bone bone) { if (data == null) throw new ArgumentNullException("data", "data cannot be null."); @@ -84,6 +84,7 @@ namespace Spine { attachment = slot.attachment; attachmentTime = slot.attachmentTime; + deform.AddRange(slot.deform); } /// The slot's setup pose data. @@ -122,13 +123,13 @@ namespace Spine { get { return attachment; } /// /// Sets the slot's attachment and, if the attachment changed, resets and clears - /// . + /// . /// May be null. set { if (attachment == value) return; attachment = value; attachmentTime = bone.skeleton.time; - attachmentVertices.Clear(false); + deform.Clear(false); } } @@ -143,13 +144,13 @@ namespace Spine { /// weighted mesh, the entries are an offset for each vertex which will be added to the mesh's local vertex positions. /// /// See and . - public ExposedList AttachmentVertices { + public ExposedList Deform { get { - return attachmentVertices; + return deform; } set { - if (attachmentVertices == null) throw new ArgumentNullException("attachmentVertices", "attachmentVertices cannot be null."); - attachmentVertices = value; + if (deform == null) throw new ArgumentNullException("deform", "deform cannot be null."); + deform = value; } }