Skip to content

Commit

Permalink
[as3] Reset track entry mix blend, fix stepped curves, see #1903
Browse files Browse the repository at this point in the history
  • Loading branch information
badlogic committed Jun 15, 2021
1 parent 731a5ac commit 4b4349f
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 1 deletion.
Binary file modified spine-as3/spine-as3/lib/spine-as3.swc
Binary file not shown.
2 changes: 1 addition & 1 deletion spine-as3/spine-as3/src/spine/SkeletonJson.as
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ package spine {
static private function readCurve(curve : Object, timeline : CurveTimeline, bezier : int, frame : int, value : Number, time1 : Number, time2 : Number,
value1 : Number, value2 : Number, scale : Number) : int {
if (curve == "stepped") {
if (value != 0) timeline.setStepped(frame);
timeline.setStepped(frame);
return bezier;
}
var i : int = value << 2;
Expand Down
1 change: 1 addition & 0 deletions spine-as3/spine-as3/src/spine/animation/AnimationState.as
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,7 @@ package spine.animation {
entry.interruptAlpha = 1;
entry.mixTime = 0;
entry.mixDuration = last == null ? 0 : data.getMix(last.animation, animation);
entry.mixBlend = MixBlend.replace;
return entry;
}

Expand Down
Binary file modified spine-starling/spine-starling/lib/spine-starling.swc
Binary file not shown.

0 comments on commit 4b4349f

Please sign in to comment.