Skip to content

Commit

Permalink
evaluate IK constraint keyframe curve
Browse files Browse the repository at this point in the history
  • Loading branch information
flyover committed Apr 28, 2016
1 parent cb8ebdc commit 0f11a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spine.js
Original file line number Diff line number Diff line change
Expand Up @@ -3319,7 +3319,7 @@ spine.Pose.prototype.strike = function() {
var ikc_keyframe0 = anim_ikc.ikc_keyframes[keyframe_index];
var ikc_keyframe1 = anim_ikc.ikc_keyframes[keyframe_index + 1];
if (ikc_keyframe1) {
pct = (time - ikc_keyframe0.time) / (ikc_keyframe1.time - ikc_keyframe0.time);
pct = ikc_keyframe0.curve.evaluate((time - ikc_keyframe0.time) / (ikc_keyframe1.time - ikc_keyframe0.time));
ikc_mix = spine.tween(ikc_keyframe0.mix, ikc_keyframe1.mix, pct);
} else {
ikc_mix = ikc_keyframe0.mix;
Expand Down

0 comments on commit 0f11a98

Please sign in to comment.