mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 08:47:52 -06:00
Bugfix: Slice at the correct height.
This commit is contained in:
parent
64c95677de
commit
da37094a09
3 changed files with 16 additions and 12 deletions
|
@ -686,9 +686,11 @@ static std::vector<PrintInstances> print_objects_from_model_object(const ModelOb
|
|||
trafo.copies.assign(1, Point());
|
||||
for (ModelInstance *model_instance : model_object.instances)
|
||||
if (model_instance->is_printable()) {
|
||||
const Vec3d &offst = model_instance->get_offset();
|
||||
trafo.trafo = model_instance->world_matrix(true);
|
||||
trafo.copies.front() = Point::new_scale(offst(0), offst(1));
|
||||
trafo.trafo = model_instance->world_matrix();
|
||||
// Set the Z axis of the transformation.
|
||||
trafo.copies.front() = Point::new_scale(trafo.trafo.data()[3], trafo.trafo.data()[7]);
|
||||
trafo.trafo.data()[3] = 0;
|
||||
trafo.trafo.data()[7] = 0;
|
||||
auto it = trafos.find(trafo);
|
||||
if (it == trafos.end())
|
||||
trafos.emplace(trafo);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue