mirror of
https://github.com/photonstorm/phaser
synced 2024-11-24 21:53:59 +00:00
Handle negative scales
This commit is contained in:
parent
cc167e158f
commit
271c88fab3
1 changed files with 2 additions and 1 deletions
|
@ -75,7 +75,8 @@ var SpineGameObjectWebGLRenderer = function (renderer, src, camera, parentMatrix
|
|||
{
|
||||
skeleton.scaleX *= -1;
|
||||
|
||||
src.root.rotation = RadToDeg(calcMatrix.rotationNormalized);
|
||||
// -180 degrees to account for the difference in Spine vs. Phaser rotation when inversely scaled
|
||||
src.root.rotation = Wrap(RadToDeg(calcMatrix.rotationNormalized) - 180, 0, 360);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue