Fix grid lines origin for multiple plates (#10724)
Some checks are pending
Build all / Build All (push) Waiting to run
Build all / Flatpak (push) Waiting to run

Update PartPlate.cpp
This commit is contained in:
yw4z 2025-09-23 04:30:29 +03:00 committed by GitHub
parent c5b8f1ee40
commit d55f016568
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -474,7 +474,7 @@ void PartPlate::calc_gridlines(const ExPolygon& poly, const BoundingBox& pp_bbox
// calculate and generate grid
int step = Bed_2D::calculate_grid_step(pp_bbox, scale_(1.00));
Vec2d scaled_origin = Vec2d(scale_(m_origin.x()),scale_(m_origin.x()));
Vec2d scaled_origin = Vec2d(scale_(m_origin.x()),scale_(m_origin.y()));
auto grid_lines = Bed_2D::generate_grid(poly, pp_bbox, scaled_origin, scale_(step), SCALED_EPSILON);
Lines lines_thin = to_lines(grid_lines[0]);