Merge branch '3.6' into 3.7-beta

This commit is contained in:
badlogic 2017-10-28 09:46:52 +02:00
commit aba0348d06
20 changed files with 37 additions and 20 deletions

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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;
}

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;
}