diff --git a/spine-csharp/src/Slot.cs b/spine-csharp/src/Slot.cs index b190d5eff..153f4804c 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 deform = new ExposedList(); + internal ExposedList attachmentVertices = new ExposedList(); public Slot (SlotData data, Bone bone) { if (data == null) throw new ArgumentNullException("data", "data cannot be null."); @@ -84,7 +84,6 @@ namespace Spine { attachment = slot.attachment; attachmentTime = slot.attachmentTime; - deform.AddRange(slot.deform); } /// The slot's setup pose data. @@ -122,14 +121,14 @@ namespace Spine { /// The current attachment for the slot, or null if the slot has no attachment. get { return attachment; } /// - /// Sets the slot's attachment and, if the attachment changed, resets and clears . - /// + /// 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; - deform.Clear(false); + attachmentVertices.Clear(false); } } @@ -140,17 +139,17 @@ namespace Spine { set { attachmentTime = bone.skeleton.time - value; } } - /// Values to deform the slot's attachment. For an unweighted mesh, the entries are local positions for each vertex. For a + /// Vertices to deform the slot's attachment. For an unweighted mesh, the entries are local positions for each vertex. For a /// 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 Deform { + public ExposedList AttachmentVertices { get { - return deform; + return attachmentVertices; } set { - if (deform == null) throw new ArgumentNullException("deform", "deform cannot be null."); - deform = value; + if (attachmentVertices == null) throw new ArgumentNullException("attachmentVertices", "attachmentVertices cannot be null."); + attachmentVertices = value; } } @@ -180,4 +179,4 @@ namespace Spine { return data.name; } } -} +} \ No newline at end of file