mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 01:36:02 +08:00
[ts] Ported latest AnimationState changes. See #792
This commit is contained in:
parent
9fedf6877a
commit
fb327d9000
@ -1568,7 +1568,7 @@ var spine;
|
|||||||
current.mixingFrom = from;
|
current.mixingFrom = from;
|
||||||
current.mixTime = 0;
|
current.mixTime = 0;
|
||||||
from.timelinesRotation.length = 0;
|
from.timelinesRotation.length = 0;
|
||||||
if (from.mixingFrom != null)
|
if (from.mixingFrom != null && from.mixDuration > 0)
|
||||||
current.mixAlpha *= Math.min(from.mixTime / from.mixDuration, 1);
|
current.mixAlpha *= Math.min(from.mixTime / from.mixDuration, 1);
|
||||||
}
|
}
|
||||||
this.queue.start(current);
|
this.queue.start(current);
|
||||||
@ -1680,7 +1680,7 @@ var spine;
|
|||||||
entry.trackTime = 0;
|
entry.trackTime = 0;
|
||||||
entry.trackLast = -1;
|
entry.trackLast = -1;
|
||||||
entry.nextTrackLast = -1;
|
entry.nextTrackLast = -1;
|
||||||
entry.trackEnd = loop ? Number.MAX_VALUE : entry.animationEnd;
|
entry.trackEnd = Number.MAX_VALUE;
|
||||||
entry.timeScale = 1;
|
entry.timeScale = 1;
|
||||||
entry.alpha = 1;
|
entry.alpha = 1;
|
||||||
entry.mixAlpha = 1;
|
entry.mixAlpha = 1;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1568,7 +1568,7 @@ var spine;
|
|||||||
current.mixingFrom = from;
|
current.mixingFrom = from;
|
||||||
current.mixTime = 0;
|
current.mixTime = 0;
|
||||||
from.timelinesRotation.length = 0;
|
from.timelinesRotation.length = 0;
|
||||||
if (from.mixingFrom != null)
|
if (from.mixingFrom != null && from.mixDuration > 0)
|
||||||
current.mixAlpha *= Math.min(from.mixTime / from.mixDuration, 1);
|
current.mixAlpha *= Math.min(from.mixTime / from.mixDuration, 1);
|
||||||
}
|
}
|
||||||
this.queue.start(current);
|
this.queue.start(current);
|
||||||
@ -1680,7 +1680,7 @@ var spine;
|
|||||||
entry.trackTime = 0;
|
entry.trackTime = 0;
|
||||||
entry.trackLast = -1;
|
entry.trackLast = -1;
|
||||||
entry.nextTrackLast = -1;
|
entry.nextTrackLast = -1;
|
||||||
entry.trackEnd = loop ? Number.MAX_VALUE : entry.animationEnd;
|
entry.trackEnd = Number.MAX_VALUE;
|
||||||
entry.timeScale = 1;
|
entry.timeScale = 1;
|
||||||
entry.alpha = 1;
|
entry.alpha = 1;
|
||||||
entry.mixAlpha = 1;
|
entry.mixAlpha = 1;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1221,7 +1221,7 @@ var spine;
|
|||||||
current.mixingFrom = from;
|
current.mixingFrom = from;
|
||||||
current.mixTime = 0;
|
current.mixTime = 0;
|
||||||
from.timelinesRotation.length = 0;
|
from.timelinesRotation.length = 0;
|
||||||
if (from.mixingFrom != null)
|
if (from.mixingFrom != null && from.mixDuration > 0)
|
||||||
current.mixAlpha *= Math.min(from.mixTime / from.mixDuration, 1);
|
current.mixAlpha *= Math.min(from.mixTime / from.mixDuration, 1);
|
||||||
}
|
}
|
||||||
this.queue.start(current);
|
this.queue.start(current);
|
||||||
@ -1333,7 +1333,7 @@ var spine;
|
|||||||
entry.trackTime = 0;
|
entry.trackTime = 0;
|
||||||
entry.trackLast = -1;
|
entry.trackLast = -1;
|
||||||
entry.nextTrackLast = -1;
|
entry.nextTrackLast = -1;
|
||||||
entry.trackEnd = loop ? Number.MAX_VALUE : entry.animationEnd;
|
entry.trackEnd = Number.MAX_VALUE;
|
||||||
entry.timeScale = 1;
|
entry.timeScale = 1;
|
||||||
entry.alpha = 1;
|
entry.alpha = 1;
|
||||||
entry.mixAlpha = 1;
|
entry.mixAlpha = 1;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1221,7 +1221,7 @@ var spine;
|
|||||||
current.mixingFrom = from;
|
current.mixingFrom = from;
|
||||||
current.mixTime = 0;
|
current.mixTime = 0;
|
||||||
from.timelinesRotation.length = 0;
|
from.timelinesRotation.length = 0;
|
||||||
if (from.mixingFrom != null)
|
if (from.mixingFrom != null && from.mixDuration > 0)
|
||||||
current.mixAlpha *= Math.min(from.mixTime / from.mixDuration, 1);
|
current.mixAlpha *= Math.min(from.mixTime / from.mixDuration, 1);
|
||||||
}
|
}
|
||||||
this.queue.start(current);
|
this.queue.start(current);
|
||||||
@ -1333,7 +1333,7 @@ var spine;
|
|||||||
entry.trackTime = 0;
|
entry.trackTime = 0;
|
||||||
entry.trackLast = -1;
|
entry.trackLast = -1;
|
||||||
entry.nextTrackLast = -1;
|
entry.nextTrackLast = -1;
|
||||||
entry.trackEnd = loop ? Number.MAX_VALUE : entry.animationEnd;
|
entry.trackEnd = Number.MAX_VALUE;
|
||||||
entry.timeScale = 1;
|
entry.timeScale = 1;
|
||||||
entry.alpha = 1;
|
entry.alpha = 1;
|
||||||
entry.mixAlpha = 1;
|
entry.mixAlpha = 1;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1221,7 +1221,7 @@ var spine;
|
|||||||
current.mixingFrom = from;
|
current.mixingFrom = from;
|
||||||
current.mixTime = 0;
|
current.mixTime = 0;
|
||||||
from.timelinesRotation.length = 0;
|
from.timelinesRotation.length = 0;
|
||||||
if (from.mixingFrom != null)
|
if (from.mixingFrom != null && from.mixDuration > 0)
|
||||||
current.mixAlpha *= Math.min(from.mixTime / from.mixDuration, 1);
|
current.mixAlpha *= Math.min(from.mixTime / from.mixDuration, 1);
|
||||||
}
|
}
|
||||||
this.queue.start(current);
|
this.queue.start(current);
|
||||||
@ -1333,7 +1333,7 @@ var spine;
|
|||||||
entry.trackTime = 0;
|
entry.trackTime = 0;
|
||||||
entry.trackLast = -1;
|
entry.trackLast = -1;
|
||||||
entry.nextTrackLast = -1;
|
entry.nextTrackLast = -1;
|
||||||
entry.trackEnd = loop ? Number.MAX_VALUE : entry.animationEnd;
|
entry.trackEnd = Number.MAX_VALUE;
|
||||||
entry.timeScale = 1;
|
entry.timeScale = 1;
|
||||||
entry.alpha = 1;
|
entry.alpha = 1;
|
||||||
entry.mixAlpha = 1;
|
entry.mixAlpha = 1;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -1221,7 +1221,7 @@ var spine;
|
|||||||
current.mixingFrom = from;
|
current.mixingFrom = from;
|
||||||
current.mixTime = 0;
|
current.mixTime = 0;
|
||||||
from.timelinesRotation.length = 0;
|
from.timelinesRotation.length = 0;
|
||||||
if (from.mixingFrom != null)
|
if (from.mixingFrom != null && from.mixDuration > 0)
|
||||||
current.mixAlpha *= Math.min(from.mixTime / from.mixDuration, 1);
|
current.mixAlpha *= Math.min(from.mixTime / from.mixDuration, 1);
|
||||||
}
|
}
|
||||||
this.queue.start(current);
|
this.queue.start(current);
|
||||||
@ -1333,7 +1333,7 @@ var spine;
|
|||||||
entry.trackTime = 0;
|
entry.trackTime = 0;
|
||||||
entry.trackLast = -1;
|
entry.trackLast = -1;
|
||||||
entry.nextTrackLast = -1;
|
entry.nextTrackLast = -1;
|
||||||
entry.trackEnd = loop ? Number.MAX_VALUE : entry.animationEnd;
|
entry.trackEnd = Number.MAX_VALUE;
|
||||||
entry.timeScale = 1;
|
entry.timeScale = 1;
|
||||||
entry.alpha = 1;
|
entry.alpha = 1;
|
||||||
entry.mixAlpha = 1;
|
entry.mixAlpha = 1;
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@ -349,7 +349,7 @@ module spine {
|
|||||||
from.timelinesRotation.length = 0;
|
from.timelinesRotation.length = 0;
|
||||||
|
|
||||||
// If not completely mixed in, set mixAlpha so mixing out happens from current mix to zero.
|
// If not completely mixed in, set mixAlpha so mixing out happens from current mix to zero.
|
||||||
if (from.mixingFrom != null) current.mixAlpha *= Math.min(from.mixTime / from.mixDuration, 1);
|
if (from.mixingFrom != null && from.mixDuration > 0) current.mixAlpha *= Math.min(from.mixTime / from.mixDuration, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
this.queue.start(current);
|
this.queue.start(current);
|
||||||
@ -469,7 +469,7 @@ module spine {
|
|||||||
entry.trackTime = 0;
|
entry.trackTime = 0;
|
||||||
entry.trackLast = -1;
|
entry.trackLast = -1;
|
||||||
entry.nextTrackLast = -1;
|
entry.nextTrackLast = -1;
|
||||||
entry.trackEnd = loop ? Number.MAX_VALUE : entry.animationEnd;
|
entry.trackEnd = Number.MAX_VALUE;
|
||||||
entry.timeScale = 1;
|
entry.timeScale = 1;
|
||||||
|
|
||||||
entry.alpha = 1;
|
entry.alpha = 1;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user