[libgdx] Fixed NPE in AnimationState, javadoc.

This commit is contained in:
NathanSweet 2019-03-09 15:10:25 +01:00
parent bd306d4781
commit 50bfb3ae0f
3 changed files with 5 additions and 6 deletions

View File

@ -712,10 +712,10 @@ public class AnimationState {
propertyIDs.clear(2048);
for (int i = tracks.size - 1; i >= 0; i--) {
TrackEntry entry = tracks.get(i);
do {
while (entry != null) {
computeNotLast(entry);
entry = entry.mixingFrom;
} while (entry != null);
}
}
}

View File

@ -102,8 +102,7 @@ public class Slot {
return attachment;
}
/** Sets the slot's attachment and, if the attachment changed, resets {@link #attachmentTime} and clears
* {@link #attachmentVertices}.
/** Sets the slot's attachment and, if the attachment changed, resets {@link #attachmentTime} and clears {@link #deform}.
* @param attachment May be null. */
public void setAttachment (Attachment attachment) {
if (this.attachment == attachment) return;

View File

@ -50,8 +50,8 @@ public class VertexAttachment extends Attachment {
super(name);
}
/** Transforms the attachment's local {@link #getVertices()} to world coordinates. If the slot has {@link Slot#getDeform()},
* they are used to deform the vertices.
/** Transforms the attachment's local {@link #getVertices()} to world coordinates. If the slot's {@link Slot#getDeform()} is
* not empty, it is used to deform the vertices.
* <p>
* See <a href="http://esotericsoftware.com/spine-runtime-skeletons#World-transforms">World transforms</a> in the Spine
* Runtimes Guide.