swf icon indicating copy to clipboard operation
swf copied to clipboard

Runtime SwfLite scales matrices multiple times

Open Geokureli opened this issue 3 years ago • 0 comments

Using the SwfLiteExporter causes graphical errors where child shapes appear in the wrong position. The problem is at SWFLiteExporter.hx#L141, L558 and L811 where the matrix is divided by 20. if the symbol is used multiple times it will be scaled again and again, we can avoid this with:

var matrix = placeTag.matrix.matrix;
matrix.tx = placeTag.matrix.translateX / 20;
matrix.ty = placeTag.matrix.translateY / 20;

Geokureli avatar Mar 03 '22 17:03 Geokureli