mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 01:06:00 +08:00
[libgdx] Fixed AnimationState crash when the number of timelines changes during a mix.
This commit is contained in:
parent
a29dbcaf97
commit
b99df7286a
@ -223,7 +223,7 @@ public class AnimationState {
|
||||
} else {
|
||||
int[] timelineMode = current.timelineMode.items;
|
||||
|
||||
boolean firstFrame = current.timelinesRotation.size == 0;
|
||||
boolean firstFrame = current.timelinesRotation.size != timelineCount << 1;
|
||||
if (firstFrame) current.timelinesRotation.setSize(timelineCount << 1);
|
||||
float[] timelinesRotation = current.timelinesRotation.items;
|
||||
|
||||
@ -275,7 +275,7 @@ public class AnimationState {
|
||||
int[] timelineMode = from.timelineMode.items;
|
||||
Object[] timelineHoldMix = from.timelineHoldMix.items;
|
||||
|
||||
boolean firstFrame = from.timelinesRotation.size == 0;
|
||||
boolean firstFrame = from.timelinesRotation.size != timelineCount << 1;
|
||||
if (firstFrame) from.timelinesRotation.setSize(timelineCount << 1);
|
||||
float[] timelinesRotation = from.timelinesRotation.items;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user