mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Backward attachment check!
Ouch!
This commit is contained in:
parent
318b9939e6
commit
4d9c3d5ec4
@ -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();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user