mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 12:19:03 +08:00
Fixes an ugly infinite loop issue.
https://github.com/prusa3d/Slic3r/issues/142
This commit is contained in:
parent
6e19921f98
commit
440a5eb2a0
@ -1051,9 +1051,10 @@ PrintObjectSupportMaterial::MyLayersPtr PrintObjectSupportMaterial::raft_and_int
|
|||||||
if (std::abs(extr1z) < EPSILON) {
|
if (std::abs(extr1z) < EPSILON) {
|
||||||
// This layer interval starts with the 1st layer. Print the 1st layer using the prescribed 1st layer thickness.
|
// This layer interval starts with the 1st layer. Print the 1st layer using the prescribed 1st layer thickness.
|
||||||
assert(intermediate_layers.empty());
|
assert(intermediate_layers.empty());
|
||||||
|
assert(extr2z > m_slicing_params.first_print_layer_height - EPSILON);
|
||||||
MyLayer &layer_new = layer_allocate(layer_storage, sltIntermediate);
|
MyLayer &layer_new = layer_allocate(layer_storage, sltIntermediate);
|
||||||
layer_new.bottom_z = 0.;
|
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;
|
layer_new.height = extr1z;
|
||||||
intermediate_layers.push_back(&layer_new);
|
intermediate_layers.push_back(&layer_new);
|
||||||
// Continue printing the other layers up to extr2z.
|
// Continue printing the other layers up to extr2z.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user