Skip to content

Commit

Permalink
fix spine.Space.extract for negative scales
Browse files Browse the repository at this point in the history
  • Loading branch information
flyover committed Apr 7, 2016
1 parent e2f884c commit 713c26e
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 @@ -861,7 +861,7 @@ spine.Space.extract = function(ab, a, out) {
out.scale.x = ab.scale.x / a.scale.x;
out.scale.y = ab.scale.y / a.scale.y;
if ((a.scale.x * a.scale.y) < 0.0) {
out.rotation.rad = spine.wrapAngleRadians(a.rotation.rad + ab.rotation.rad);
out.rotation.rad = spine.wrapAngleRadians(a.rotation.rad - ab.rotation.rad);
} else {
out.rotation.rad = spine.wrapAngleRadians(ab.rotation.rad - a.rotation.rad);
}
Expand Down

0 comments on commit 713c26e

Please sign in to comment.