mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-05 06:44:56 +08:00
Merge branch 'dev' of https://github.com/esotericsoftware/spine-runtimes into dev
This commit is contained in:
commit
ae1b449f58
@ -583,7 +583,7 @@ public class AnimationState {
|
||||
private void setTimelinesFirst (TrackEntry entry) {
|
||||
if (entry.mixingFrom != null) {
|
||||
setTimelinesFirst(entry.mixingFrom);
|
||||
checkTimelinesUsage(entry, entry.timelinesFirst);
|
||||
checkTimelinesUsage(entry);
|
||||
return;
|
||||
}
|
||||
IntSet propertyIDs = this.propertyIDs;
|
||||
@ -599,14 +599,14 @@ public class AnimationState {
|
||||
/** From last to first mixingFrom entries, calls checkTimelineUsage. */
|
||||
private void checkTimelinesFirst (TrackEntry entry) {
|
||||
if (entry.mixingFrom != null) checkTimelinesFirst(entry.mixingFrom);
|
||||
checkTimelinesUsage(entry, entry.timelinesFirst);
|
||||
checkTimelinesUsage(entry);
|
||||
}
|
||||
|
||||
private void checkTimelinesUsage (TrackEntry entry, BooleanArray usageArray) {
|
||||
private void checkTimelinesUsage (TrackEntry entry) {
|
||||
IntSet propertyIDs = this.propertyIDs;
|
||||
int n = entry.animation.timelines.size;
|
||||
Object[] timelines = entry.animation.timelines.items;
|
||||
boolean[] usage = usageArray.setSize(n);
|
||||
boolean[] usage = entry.timelinesFirst.setSize(n);
|
||||
for (int i = 0; i < n; i++)
|
||||
usage[i] = propertyIDs.add(((Timeline)timelines[i]).getPropertyId());
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user