Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/prusa3d/PrusaSlicer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVojtech Bubnik <bubnikv@gmail.com>2021-05-24 19:07:00 +0300
committerVojtech Bubnik <bubnikv@gmail.com>2021-05-24 19:07:12 +0300
commit701a0c9576abc82bccbfd0415b9ecd6896669872 (patch)
tree04ae3eed72221c4d3f934a349cb29ceb17e88184 /src
parentcf76b5c2642e513d46efa2472f337816e48d1db1 (diff)
Two more bugs squished.
Diffstat (limited to 'src')
-rw-r--r--src/libslic3r/PrintObjectSlice.cpp4
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.