"There is an object with no extrusions on the first layer."

should throw SlicingError, not RuntimeError.
This commit is contained in:
Vojtech Bubnik 2020-09-23 12:58:58 +02:00
parent 056c46d01f
commit 0dad7adfa1

View File

@ -629,7 +629,7 @@ std::vector<GCode::LayerToPrint> GCode::collect_layers_to_print(const PrintObjec
// Check that there are extrusions on the very first layer.
if (layers_to_print.size() == 1u) {
if (!has_extrusions)
throw Slic3r::RuntimeError(_(L("There is an object with no extrusions on the first layer.")));
throw Slic3r::SlicingError(_(L("There is an object with no extrusions on the first layer.")));
}
// In case there are extrusions on this layer, check there is a layer to lay it on.