Skip to content

Commit

Permalink
prevent duplicate matrix scaling
Browse files Browse the repository at this point in the history
fixes #16
  • Loading branch information
Geokureli authored and jgranick committed Oct 23, 2024
1 parent ab13f8a commit 2729858
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/swf/exporters/SWFLiteExporter.hx
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ class SWFLiteExporter
if (object.placeMatrix != null)
{
var matrix = object.placeMatrix.matrix;
matrix.tx *= (1 / 20);
matrix.ty *= (1 / 20);
matrix.tx = object.placeMatrix.translateX / 20;
matrix.ty = object.placeMatrix.translateY / 20;

frameObject.matrix = matrix;
}
Expand Down Expand Up @@ -556,8 +556,8 @@ class SWFLiteExporter
if (placeTag.matrix != null)
{
var matrix = placeTag.matrix.matrix;
matrix.tx *= (1 / 20);
matrix.ty *= (1 / 20);
matrix.tx = placeTag.matrix.translateX / 20;
matrix.ty = placeTag.matrix.translateY / 20;

frameObject.matrix = matrix;
}
Expand Down Expand Up @@ -808,8 +808,8 @@ class SWFLiteExporter
symbol.records = records;

var matrix = tag.textMatrix.matrix;
matrix.tx *= (1 / 20);
matrix.ty *= (1 / 20);
matrix.tx = tag.textMatrix.translateX / 20;
matrix.ty = tag.textMatrix.translateY / 20;

symbol.matrix = matrix;

Expand Down

0 comments on commit 2729858

Please sign in to comment.