mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-05-23 21:18:26 +08:00
"There is an object with no extrusions on the first layer."
should throw SlicingError, not RuntimeError.
This commit is contained in:
parent
056c46d01f
commit
0dad7adfa1
@ -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.
|
// Check that there are extrusions on the very first layer.
|
||||||
if (layers_to_print.size() == 1u) {
|
if (layers_to_print.size() == 1u) {
|
||||||
if (!has_extrusions)
|
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.
|
// In case there are extrusions on this layer, check there is a layer to lay it on.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user