diff --git a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Slot.java b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Slot.java index 48db6d475..c5f510051 100644 --- a/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Slot.java +++ b/spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Slot.java @@ -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();