mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-21 05:37:52 -06:00
fix wrong print size in case of multi plate
Signed-off-by: SoftFever <softfeverever@gmail.com> #153 #37
This commit is contained in:
parent
3970b84d97
commit
594c22cde0
1 changed files with 2 additions and 2 deletions
|
@ -1540,8 +1540,8 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
|
||||||
// It does NOT encompass MMU/MMU2 starting (wipe) areas.
|
// It does NOT encompass MMU/MMU2 starting (wipe) areas.
|
||||||
auto pts = std::make_unique<ConfigOptionPoints>();
|
auto pts = std::make_unique<ConfigOptionPoints>();
|
||||||
pts->values.reserve(print.first_layer_convex_hull().size());
|
pts->values.reserve(print.first_layer_convex_hull().size());
|
||||||
for (const Point &pt : print.first_layer_convex_hull().points)
|
for (const Point& pt : print.first_layer_convex_hull().points)
|
||||||
pts->values.emplace_back(unscale(pt));
|
pts->values.emplace_back(unscale(pt) - Vec2d(print.get_plate_origin().x(), print.get_plate_origin().y()));
|
||||||
BoundingBoxf bbox(pts->values);
|
BoundingBoxf bbox(pts->values);
|
||||||
m_placeholder_parser.set("first_layer_print_convex_hull", pts.release());
|
m_placeholder_parser.set("first_layer_print_convex_hull", pts.release());
|
||||||
m_placeholder_parser.set("first_layer_print_min", new ConfigOptionFloats({ bbox.min.x(), bbox.min.y() }));
|
m_placeholder_parser.set("first_layer_print_min", new ConfigOptionFloats({ bbox.min.x(), bbox.min.y() }));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue