mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
Shift attachment IDs to reduce effort needed to compute DeformTimeline ID.
This commit is contained in:
parent
c4268d4bfe
commit
a8577b78a7
@ -814,7 +814,7 @@ public class Animation {
|
||||
}
|
||||
|
||||
public int getPropertyId () {
|
||||
return (TimelineType.deform.ordinal() << 27) + ((slotIndex & 2047) << 16) + attachment.getId();
|
||||
return (TimelineType.deform.ordinal() << 27) + attachment.getId() + slotIndex;
|
||||
}
|
||||
|
||||
public void setSlotIndex (int index) {
|
||||
|
||||
@ -40,7 +40,7 @@ import com.esotericsoftware.spine.Slot;
|
||||
public class VertexAttachment extends Attachment {
|
||||
static private int nextID;
|
||||
|
||||
private int id = nextID++ & 65535;
|
||||
private int id = (nextID++ & 65535) << 11;
|
||||
int[] bones;
|
||||
float[] vertices;
|
||||
int worldVerticesLength;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user