mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 10:17:55 -06:00
SLA archive import will now recover the model's original position.
This commit is contained in:
parent
769ee15475
commit
8541ce4060
5 changed files with 20 additions and 11 deletions
|
@ -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(); });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue