Pārlūkot izejas kodu

Backward attachment check!

Ouch!
NathanSweet 9 gadi atpakaļ
vecāks
revīzija
4d9c3d5ec4

+ 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()}.
 	/** Sets the attachment and if it changed, resets {@link #getAttachmentTime()} and clears {@link #getAttachmentVertices()}.
 	 * @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;
 		this.attachment = attachment;
 		this.attachment = attachment;
 		attachmentTime = bone.skeleton.time;
 		attachmentTime = bone.skeleton.time;
 		attachmentVertices.clear();
 		attachmentVertices.clear();