SLA archive import will now recover the model's original position.

This commit is contained in:
tamasmeszaros 2020-04-29 16:26:39 +02:00
parent 769ee15475
commit 8541ce4060
5 changed files with 20 additions and 11 deletions

View file

@ -162,6 +162,8 @@ void invert_raster_trafo(ExPolygons & expolys,
coord_t width,
coord_t height)
{
if (trafo.flipXY) std::swap(height, width);
for (auto &expoly : expolys) {
if (trafo.mirror_y)
foreach_vertex(expoly, [height](Point &p) {p.y() = height - p.y(); });