diff --git a/src/libslic3r/GCode.cpp b/src/libslic3r/GCode.cpp index b5890f57843..2c6b19fcf42 100644 --- a/src/libslic3r/GCode.cpp +++ b/src/libslic3r/GCode.cpp @@ -633,12 +633,12 @@ std::vector GCode::collect_layers_to_print(const PrintObjec bool has_extrusions = (layer_to_print.object_layer && layer_to_print.object_layer->has_extrusions()) || (layer_to_print.support_layer && layer_to_print.support_layer->has_extrusions()); - if (has_extrusions && layer_to_print.print_z() > maximal_print_z + 2. * EPSILON) - throw std::runtime_error(_(L("Empty layers detected, the output would not be printable.")) + "\n\n" + - _(L("Object name")) + ": " + object.model_object()->name + "\n" + _(L("Print z")) + ": " + - std::to_string(layers_to_print.back().print_z()) + "\n\n" + _(L("This is " - "usually caused by negligibly small extrusions or by a faulty model. Try to repair " - "the model or change its orientation on the bed."))); + //if (has_extrusions && layer_to_print.print_z() > maximal_print_z + 2. * EPSILON) + // throw std::runtime_error(_(L("Empty layers detected, the output would not be printable.")) + "\n\n" + + // _(L("Object name")) + ": " + object.model_object()->name + "\n" + _(L("Print z")) + ": " + + // std::to_string(layers_to_print.back().print_z()) + "\n\n" + _(L("This is " + // "usually caused by negligibly small extrusions or by a faulty model. Try to repair " + // "the model or change its orientation on the bed."))); // Remember last layer with extrusions. last_extrusion_layer = &layers_to_print.back(); }