diff options
author | Vojtech Bubnik <bubnikv@gmail.com> | 2021-05-24 19:07:00 +0300 |
---|---|---|
committer | Vojtech Bubnik <bubnikv@gmail.com> | 2021-05-24 19:07:12 +0300 |
commit | 701a0c9576abc82bccbfd0415b9ecd6896669872 (patch) | |
tree | 04ae3eed72221c4d3f934a349cb29ceb17e88184 /src | |
parent | cf76b5c2642e513d46efa2472f337816e48d1db1 (diff) |
Two more bugs squished.
Diffstat (limited to 'src')
-rw-r--r-- | src/libslic3r/PrintObjectSlice.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libslic3r/PrintObjectSlice.cpp b/src/libslic3r/PrintObjectSlice.cpp index e9c30c08e..9fcecb417 100644 --- a/src/libslic3r/PrintObjectSlice.cpp +++ b/src/libslic3r/PrintObjectSlice.cpp @@ -79,7 +79,7 @@ static std::vector<ExPolygons> slice_volume( params2.trafo = params2.trafo * volume.get_matrix(); if (params2.trafo.rotation().determinant() < 0.) its_flip_triangles(its); - layers = slice_mesh_ex(its, zs, params, throw_on_cancel_callback); + layers = slice_mesh_ex(its, zs, params2, throw_on_cancel_callback); throw_on_cancel_callback(); } } @@ -718,7 +718,7 @@ std::vector<ExPolygons> PrintObject::slice_support_volumes(const ModelVolumeType { auto it_volume = this->model_object()->volumes.begin(); auto it_volume_end = this->model_object()->volumes.end(); - for (; (*it_volume)->type() != model_volume_type && it_volume != it_volume_end; ++ it_volume) ; + for (; it_volume != it_volume_end && (*it_volume)->type() != model_volume_type; ++ it_volume) ; std::vector<ExPolygons> slices; if (it_volume != it_volume_end) { // Found at least a single support volume of model_volume_type. |