diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/MeshAttachment.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/MeshAttachment.java index c9340cfdb..86d7aa3c1 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/MeshAttachment.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/MeshAttachment.java @@ -100,8 +100,8 @@ public class MeshAttachment extends VertexAttachment implements HasTextureRegion return region; } - /** Calculates {@link #uvs} using the {@link #regionUVs} and {@link #region}. Must be called if the {@link #region}, - * {@link #regionUVs}, or the region's properties are changed. */ + /** Calculates {@link #uvs} using the {@link #regionUVs} and region. Must be called if the region, the region's properties, or + * the {@link #regionUVs} are changed. */ public void updateRegion () { float[] regionUVs = this.regionUVs; if (this.uvs == null || this.uvs.length != regionUVs.length) this.uvs = new float[regionUVs.length]; @@ -164,7 +164,7 @@ public class MeshAttachment extends VertexAttachment implements HasTextureRegion } } - /** If the attachment has a {@link #sequence}, the {@link #region} may be changed. */ + /** If the attachment has a {@link #sequence}, the region may be changed. */ public void computeWorldVertices (Slot slot, int start, int count, float[] worldVertices, int offset, int stride) { if (sequence != null) sequence.apply(slot, this); super.computeWorldVertices(slot, start, count, worldVertices, offset, stride); diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/RegionAttachment.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/RegionAttachment.java index 9e5d74ef1..8f01b7773 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/RegionAttachment.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/RegionAttachment.java @@ -78,8 +78,8 @@ public class RegionAttachment extends Attachment implements HasTextureRegion { sequence = new Sequence(sequence); } - /** Calculates the {@link #offset} and {@link #uvs} using the {@link #region} and the attachment's transform. Must be called if - * the {@link #region}, transform, or the region's properties are changed. */ + /** Calculates the {@link #offset} and {@link #uvs} using the region and the attachment's transform. Must be called if the + * region, the region's properties, or the transform are changed. */ public void updateRegion () { float width = getWidth(); float height = getHeight(); @@ -161,8 +161,8 @@ public class RegionAttachment extends Attachment implements HasTextureRegion { return region; } - /** Transforms the attachment's four vertices to world coordinates. If the attachment has a {@link #sequence}, the - * {@link #region} may be changed. + /** Transforms the attachment's four vertices to world coordinates. If the attachment has a {@link #sequence}, the region may + * be changed. *

* See World transforms in the Spine * Runtimes Guide. diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/Sequence.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/Sequence.java index 244f83f05..000611254 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/Sequence.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/attachments/Sequence.java @@ -56,7 +56,7 @@ public class Sequence { setupIndex = other.setupIndex; } - public void apply (Slot slot, T attachment) { + public void apply (Slot slot, HasTextureRegion attachment) { int index = slot.getSequenceIndex(); if (index == -1) index = setupIndex; if (index >= regions.length) index = regions.length - 1;