浏览代码

Backward attachment check!

Ouch!
NathanSweet 9 年之前
父节点
当前提交
4d9c3d5ec4
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      spine-libgdx/spine-libgdx/src/com/esotericsoftware/spine/Slot.java

+ 1 - 1
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();