mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 07:14:55 +08:00
[ts][csharp] Fix for #1352, the last subsequent attachment timeline always mixes out to the setup pose.
This commit is contained in:
parent
603c9e2366
commit
6341fbbd9d
@ -299,7 +299,10 @@ namespace Spine {
|
||||
float alpha;
|
||||
switch (timelineMode[i] & AnimationState.NotLast - 1) {
|
||||
case AnimationState.Subsequent:
|
||||
if (!attachments && timeline is AttachmentTimeline) continue;
|
||||
if (!attachments && timeline is AttachmentTimeline) {
|
||||
if ((timelineMode[i] & AnimationState.NotLast) == AnimationState.NotLast) continue;
|
||||
blend = MixBlend.setup;
|
||||
}
|
||||
if (!drawOrder && timeline is DrawOrderTimeline) continue;
|
||||
timelineBlend = blend;
|
||||
alpha = alphaMix;
|
||||
|
||||
@ -1475,8 +1475,11 @@ var spine;
|
||||
var alpha = 0;
|
||||
switch (timelineMode[i] & (AnimationState.NOT_LAST - 1)) {
|
||||
case AnimationState.SUBSEQUENT:
|
||||
if (!attachments && timeline instanceof spine.AttachmentTimeline)
|
||||
continue;
|
||||
if (!attachments && timeline instanceof spine.AttachmentTimeline) {
|
||||
if ((timelineMode[i] & AnimationState.NOT_LAST) == AnimationState.NOT_LAST)
|
||||
continue;
|
||||
blend = spine.MixBlend.setup;
|
||||
}
|
||||
if (!drawOrder && timeline instanceof spine.DrawOrderTimeline)
|
||||
continue;
|
||||
timelineBlend = blend;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1475,8 +1475,11 @@ var spine;
|
||||
var alpha = 0;
|
||||
switch (timelineMode[i] & (AnimationState.NOT_LAST - 1)) {
|
||||
case AnimationState.SUBSEQUENT:
|
||||
if (!attachments && timeline instanceof spine.AttachmentTimeline)
|
||||
continue;
|
||||
if (!attachments && timeline instanceof spine.AttachmentTimeline) {
|
||||
if ((timelineMode[i] & AnimationState.NOT_LAST) == AnimationState.NOT_LAST)
|
||||
continue;
|
||||
blend = spine.MixBlend.setup;
|
||||
}
|
||||
if (!drawOrder && timeline instanceof spine.DrawOrderTimeline)
|
||||
continue;
|
||||
timelineBlend = blend;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1475,8 +1475,11 @@ var spine;
|
||||
var alpha = 0;
|
||||
switch (timelineMode[i] & (AnimationState.NOT_LAST - 1)) {
|
||||
case AnimationState.SUBSEQUENT:
|
||||
if (!attachments && timeline instanceof spine.AttachmentTimeline)
|
||||
continue;
|
||||
if (!attachments && timeline instanceof spine.AttachmentTimeline) {
|
||||
if ((timelineMode[i] & AnimationState.NOT_LAST) == AnimationState.NOT_LAST)
|
||||
continue;
|
||||
blend = spine.MixBlend.setup;
|
||||
}
|
||||
if (!drawOrder && timeline instanceof spine.DrawOrderTimeline)
|
||||
continue;
|
||||
timelineBlend = blend;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1475,8 +1475,11 @@ var spine;
|
||||
var alpha = 0;
|
||||
switch (timelineMode[i] & (AnimationState.NOT_LAST - 1)) {
|
||||
case AnimationState.SUBSEQUENT:
|
||||
if (!attachments && timeline instanceof spine.AttachmentTimeline)
|
||||
continue;
|
||||
if (!attachments && timeline instanceof spine.AttachmentTimeline) {
|
||||
if ((timelineMode[i] & AnimationState.NOT_LAST) == AnimationState.NOT_LAST)
|
||||
continue;
|
||||
blend = spine.MixBlend.setup;
|
||||
}
|
||||
if (!drawOrder && timeline instanceof spine.DrawOrderTimeline)
|
||||
continue;
|
||||
timelineBlend = blend;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1475,8 +1475,11 @@ var spine;
|
||||
var alpha = 0;
|
||||
switch (timelineMode[i] & (AnimationState.NOT_LAST - 1)) {
|
||||
case AnimationState.SUBSEQUENT:
|
||||
if (!attachments && timeline instanceof spine.AttachmentTimeline)
|
||||
continue;
|
||||
if (!attachments && timeline instanceof spine.AttachmentTimeline) {
|
||||
if ((timelineMode[i] & AnimationState.NOT_LAST) == AnimationState.NOT_LAST)
|
||||
continue;
|
||||
blend = spine.MixBlend.setup;
|
||||
}
|
||||
if (!drawOrder && timeline instanceof spine.DrawOrderTimeline)
|
||||
continue;
|
||||
timelineBlend = blend;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1475,8 +1475,11 @@ var spine;
|
||||
var alpha = 0;
|
||||
switch (timelineMode[i] & (AnimationState.NOT_LAST - 1)) {
|
||||
case AnimationState.SUBSEQUENT:
|
||||
if (!attachments && timeline instanceof spine.AttachmentTimeline)
|
||||
continue;
|
||||
if (!attachments && timeline instanceof spine.AttachmentTimeline) {
|
||||
if ((timelineMode[i] & AnimationState.NOT_LAST) == AnimationState.NOT_LAST)
|
||||
continue;
|
||||
blend = spine.MixBlend.setup;
|
||||
}
|
||||
if (!drawOrder && timeline instanceof spine.DrawOrderTimeline)
|
||||
continue;
|
||||
timelineBlend = blend;
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -230,7 +230,10 @@ module spine {
|
||||
let alpha = 0;
|
||||
switch (timelineMode[i] & (AnimationState.NOT_LAST - 1)) {
|
||||
case AnimationState.SUBSEQUENT:
|
||||
if (!attachments && timeline instanceof AttachmentTimeline) continue;
|
||||
if (!attachments && timeline instanceof AttachmentTimeline) {
|
||||
if ((timelineMode[i] & AnimationState.NOT_LAST) == AnimationState.NOT_LAST) continue;
|
||||
blend = MixBlend.setup;
|
||||
}
|
||||
if (!drawOrder && timeline instanceof DrawOrderTimeline) continue;
|
||||
timelineBlend = blend;
|
||||
alpha = alphaMix;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user