Skip to content

Commit

Permalink
Fixes an ugly infinite loop issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
bubnikv committed Feb 19, 2017
1 parent 6e19921 commit 440a5eb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion xs/src/libslic3r/SupportMaterial.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1051,9 +1051,10 @@ PrintObjectSupportMaterial::MyLayersPtr PrintObjectSupportMaterial::raft_and_int
if (std::abs(extr1z) < EPSILON) {
// This layer interval starts with the 1st layer. Print the 1st layer using the prescribed 1st layer thickness.
assert(intermediate_layers.empty());
assert(extr2z > m_slicing_params.first_print_layer_height - EPSILON);
MyLayer &layer_new = layer_allocate(layer_storage, sltIntermediate);
layer_new.bottom_z = 0.;
layer_new.print_z = extr1z = m_slicing_params.first_print_layer_height;
layer_new.print_z = extr1z = std::min(extr2z, m_slicing_params.first_print_layer_height);
layer_new.height = extr1z;
intermediate_layers.push_back(&layer_new);
// Continue printing the other layers up to extr2z.
Expand Down

0 comments on commit 440a5eb

Please sign in to comment.