mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-11 09:38:44 +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()}.
|
||||
* @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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user