Skip to content

Commit

Permalink
fix export negative scale
Browse files Browse the repository at this point in the history
  • Loading branch information
ankstoo committed Feb 20, 2013
1 parent 6f89449 commit 2a450df
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -190,7 +190,11 @@ package com.grapefrukt.exporter.serializers.data {

// warning. here be matrix math!
var scaleX:Number = Math.sqrt(m.a * m.a + m.b * m.b);
if (m.a < 0)
scaleX = -scaleX;
var scaleY:Number = Math.sqrt(m.c * m.c + m.d * m.d);
if (m.d < 0)
scaleY = -scaleY;
xml.@scaleX = scaleX.toFixed(Settings.scalePrecision)
xml.@scaleY = scaleY.toFixed(Settings.scalePrecision);

Expand Down

0 comments on commit 2a450df

Please sign in to comment.