mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 23:34:53 +08:00
[as3] Ported attachment timeline threshold and draw order fix. See #1204.
This commit is contained in:
parent
941a9bd685
commit
54c6aacaa2
Binary file not shown.
@ -241,6 +241,7 @@ package spine.animation {
|
||||
from.totalAlpha = 0;
|
||||
for (i = 0; i < timelineCount; i++) {
|
||||
var timeline : Timeline = timelines[i];
|
||||
var direction : MixDirection = MixDirection.Out;
|
||||
var timelineBlend: MixBlend;
|
||||
var alpha : Number = 0;
|
||||
switch (timelineMode[i]) {
|
||||
@ -267,8 +268,15 @@ package spine.animation {
|
||||
from.totalAlpha += alpha;
|
||||
if (timeline is RotateTimeline)
|
||||
applyRotateTimeline(timeline, skeleton, animationTime, alpha, timelineBlend, timelinesRotation, i << 1, firstFrame);
|
||||
else {
|
||||
timeline.apply(skeleton, animationLast, animationTime, events, alpha, timelineBlend, MixDirection.Out);
|
||||
else {
|
||||
if (timelineBlend == MixBlend.setup) {
|
||||
if (timeline is AttachmentTimeline) {
|
||||
if (attachments) direction = MixDirection.In;
|
||||
} else if (timeline is DrawOrderTimeline) {
|
||||
if (drawOrder) direction = MixDirection.In;
|
||||
}
|
||||
}
|
||||
timeline.apply(skeleton, animationLast, animationTime, events, alpha, timelineBlend, direction);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user