mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[libgdx] Fixed NPE in AnimationState, javadoc.
This commit is contained in:
parent
bd306d4781
commit
50bfb3ae0f
@ -712,10 +712,10 @@ public class AnimationState {
|
|||||||
propertyIDs.clear(2048);
|
propertyIDs.clear(2048);
|
||||||
for (int i = tracks.size - 1; i >= 0; i--) {
|
for (int i = tracks.size - 1; i >= 0; i--) {
|
||||||
TrackEntry entry = tracks.get(i);
|
TrackEntry entry = tracks.get(i);
|
||||||
do {
|
while (entry != null) {
|
||||||
computeNotLast(entry);
|
computeNotLast(entry);
|
||||||
entry = entry.mixingFrom;
|
entry = entry.mixingFrom;
|
||||||
} while (entry != null);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -102,8 +102,7 @@ public class Slot {
|
|||||||
return attachment;
|
return attachment;
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Sets the slot's attachment and, if the attachment changed, resets {@link #attachmentTime} and clears
|
/** Sets the slot's attachment and, if the attachment changed, resets {@link #attachmentTime} and clears {@link #deform}.
|
||||||
* {@link #attachmentVertices}.
|
|
||||||
* @param attachment May be null. */
|
* @param attachment May be null. */
|
||||||
public void setAttachment (Attachment attachment) {
|
public void setAttachment (Attachment attachment) {
|
||||||
if (this.attachment == attachment) return;
|
if (this.attachment == attachment) return;
|
||||||
|
|||||||
@ -50,8 +50,8 @@ public class VertexAttachment extends Attachment {
|
|||||||
super(name);
|
super(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Transforms the attachment's local {@link #getVertices()} to world coordinates. If the slot has {@link Slot#getDeform()},
|
/** Transforms the attachment's local {@link #getVertices()} to world coordinates. If the slot's {@link Slot#getDeform()} is
|
||||||
* they are used to deform the vertices.
|
* not empty, it is used to deform the vertices.
|
||||||
* <p>
|
* <p>
|
||||||
* See <a href="http://esotericsoftware.com/spine-runtime-skeletons#World-transforms">World transforms</a> in the Spine
|
* See <a href="http://esotericsoftware.com/spine-runtime-skeletons#World-transforms">World transforms</a> in the Spine
|
||||||
* Runtimes Guide.
|
* Runtimes Guide.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user