FIX: grouping single layer volumes during briming
If an object has only one empty layer, error will encount during grouping volumes studio-2602 Change-Id: I25871b8cc8e4772c347c615db346875a9658db71 (cherry picked from commit 78b7e7706f6c8e7e86f4bd2e8daab7036499ced2)
This commit is contained in:
parent
d4907f0e4f
commit
b15e9a89cf
|
@ -721,7 +721,7 @@ std::string fix_slicing_errors(PrintObject* object, LayerPtrs &layers, const std
|
|||
// BBS: first layer slices are sorted by volume group, if the first layer is empty and replaced by the 2nd layer
|
||||
// the later will be stored in "object->firstLayerObjGroupsMod()"
|
||||
int firstLayerReplacedBy = 0;
|
||||
if (!buggy_layers.empty() && buggy_layers.front() == 0)
|
||||
if (!buggy_layers.empty() && buggy_layers.front() == 0 && layers.size() > 1)
|
||||
firstLayerReplacedBy = 1;
|
||||
|
||||
const auto scaled_resolution = scaled<double>(object->print()->config().resolution.value);
|
||||
|
|
Loading…
Reference in New Issue