Backward attachment check!

Ouch!
This commit is contained in:
NathanSweet 2016-01-15 07:10:08 +01:00
parent 318b9939e6
commit 4d9c3d5ec4

View File

@ -94,7 +94,7 @@ public class Slot {
/** Sets the attachment and if it changed, resets {@link #getAttachmentTime()} and clears {@link #getAttachmentVertices()}.
* @param attachment May be null. */
public void setAttachment (Attachment attachment) {
if (this.attachment != attachment) return;
if (this.attachment == attachment) return;
this.attachment = attachment;
attachmentTime = bone.skeleton.time;
attachmentVertices.clear();