mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
fix wrong print size in case of multi plate
Signed-off-by: SoftFever <softfeverever@gmail.com> #153 #37
This commit is contained in:
@@ -1541,7 +1541,7 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
|
|||||||
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() }));
|
||||||
|
|||||||
Reference in New Issue
Block a user