mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[c] Fix not returning to setup pose when multiple mixing from entries end at same time. See #1027
This commit is contained in:
parent
bb23c5e25c
commit
a8c5282653
@ -419,9 +419,10 @@ float _spAnimationState_applyMixingFrom (spAnimationState* self, spTrackEntry* t
|
||||
spTrackEntry* from = to->mixingFrom;
|
||||
if (from->mixingFrom) _spAnimationState_applyMixingFrom(self, from, skeleton, currentPose);
|
||||
|
||||
if (to->mixDuration == 0) /* Single frame mix to undo mixingFrom changes. */
|
||||
if (to->mixDuration == 0) { /* Single frame mix to undo mixingFrom changes. */
|
||||
mix = 1;
|
||||
else {
|
||||
currentPose = SP_MIX_POSE_SETUP;
|
||||
} else {
|
||||
mix = to->mixTime / to->mixDuration;
|
||||
if (mix > 1) mix = 1;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user