From 4d9c3d5ec40828c9d7ce9f82e0a8888fabcf97af Mon Sep 17 00:00:00 2001 From: NathanSweet Date: Fri, 15 Jan 2016 07:10:08 +0100 Subject: [PATCH] Backward attachment check! Ouch! --- .../spine-libgdx/src/com/esotericsoftware/spine/Slot.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();