mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-20 17:26:01 +08:00
Merge branch '3.6' into 3.7-beta
This commit is contained in:
commit
aba0348d06
Binary file not shown.
@ -207,9 +207,10 @@ package spine.animation {
|
||||
if (from.mixingFrom != null) applyMixingFrom(from, skeleton, currentPose);
|
||||
|
||||
var mix : Number = 0;
|
||||
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 = MixPose.setup;
|
||||
} else {
|
||||
mix = to.mixTime / to.mixDuration;
|
||||
if (mix > 1) mix = 1;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -220,9 +220,10 @@ namespace Spine {
|
||||
if (from.mixingFrom != null) ApplyMixingFrom(from, skeleton, currentPose);
|
||||
|
||||
float mix;
|
||||
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 = MixPose.Setup;
|
||||
} else {
|
||||
mix = to.mixTime / to.mixDuration;
|
||||
if (mix > 1) mix = 1;
|
||||
}
|
||||
|
||||
@ -428,6 +428,7 @@ function AnimationState:applyMixingFrom (to, skeleton, currentPose)
|
||||
local mix = 0
|
||||
if to.mixDuration == 0 then -- Single frame mix to undo mixingFrom changes.
|
||||
mix = 1
|
||||
currentPose = MixPose.setup
|
||||
else
|
||||
mix = to.mixTime / to.mixDuration
|
||||
if mix > 1 then mix = 1 end
|
||||
|
||||
Binary file not shown.
Binary file not shown.
@ -1715,8 +1715,10 @@ var spine;
|
||||
if (from.mixingFrom != null)
|
||||
this.applyMixingFrom(from, skeleton, currentPose);
|
||||
var mix = 0;
|
||||
if (to.mixDuration == 0)
|
||||
if (to.mixDuration == 0) {
|
||||
mix = 1;
|
||||
currentPose = spine.MixPose.setup;
|
||||
}
|
||||
else {
|
||||
mix = to.mixTime / to.mixDuration;
|
||||
if (mix > 1)
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1715,8 +1715,10 @@ var spine;
|
||||
if (from.mixingFrom != null)
|
||||
this.applyMixingFrom(from, skeleton, currentPose);
|
||||
var mix = 0;
|
||||
if (to.mixDuration == 0)
|
||||
if (to.mixDuration == 0) {
|
||||
mix = 1;
|
||||
currentPose = spine.MixPose.setup;
|
||||
}
|
||||
else {
|
||||
mix = to.mixTime / to.mixDuration;
|
||||
if (mix > 1)
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1266,8 +1266,10 @@ var spine;
|
||||
if (from.mixingFrom != null)
|
||||
this.applyMixingFrom(from, skeleton, currentPose);
|
||||
var mix = 0;
|
||||
if (to.mixDuration == 0)
|
||||
if (to.mixDuration == 0) {
|
||||
mix = 1;
|
||||
currentPose = spine.MixPose.setup;
|
||||
}
|
||||
else {
|
||||
mix = to.mixTime / to.mixDuration;
|
||||
if (mix > 1)
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1266,8 +1266,10 @@ var spine;
|
||||
if (from.mixingFrom != null)
|
||||
this.applyMixingFrom(from, skeleton, currentPose);
|
||||
var mix = 0;
|
||||
if (to.mixDuration == 0)
|
||||
if (to.mixDuration == 0) {
|
||||
mix = 1;
|
||||
currentPose = spine.MixPose.setup;
|
||||
}
|
||||
else {
|
||||
mix = to.mixTime / to.mixDuration;
|
||||
if (mix > 1)
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1266,8 +1266,10 @@ var spine;
|
||||
if (from.mixingFrom != null)
|
||||
this.applyMixingFrom(from, skeleton, currentPose);
|
||||
var mix = 0;
|
||||
if (to.mixDuration == 0)
|
||||
if (to.mixDuration == 0) {
|
||||
mix = 1;
|
||||
currentPose = spine.MixPose.setup;
|
||||
}
|
||||
else {
|
||||
mix = to.mixTime / to.mixDuration;
|
||||
if (mix > 1)
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -1266,8 +1266,10 @@ var spine;
|
||||
if (from.mixingFrom != null)
|
||||
this.applyMixingFrom(from, skeleton, currentPose);
|
||||
var mix = 0;
|
||||
if (to.mixDuration == 0)
|
||||
if (to.mixDuration == 0) {
|
||||
mix = 1;
|
||||
currentPose = spine.MixPose.setup;
|
||||
}
|
||||
else {
|
||||
mix = to.mixTime / to.mixDuration;
|
||||
if (mix > 1)
|
||||
|
||||
File diff suppressed because one or more lines are too long
@ -191,9 +191,10 @@ module spine {
|
||||
if (from.mixingFrom != null) this.applyMixingFrom(from, skeleton, currentPose);
|
||||
|
||||
let mix = 0;
|
||||
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 = MixPose.setup;
|
||||
} else {
|
||||
mix = to.mixTime / to.mixDuration;
|
||||
if (mix > 1) mix = 1;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user