mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 01:01:59 +08:00
Workaround to avoid a crash referencing _skirt_done when it is empty.
This commit is contained in:
parent
1a94921462
commit
5bb7f79baf
@ -383,7 +383,7 @@ PrintGCode::process_layer(size_t idx, const Layer* layer, const Points& copies)
|
|||||||
|
|
||||||
// extrude skirt along raft layers and normal obj layers
|
// extrude skirt along raft layers and normal obj layers
|
||||||
// (not along interlaced support material layers)
|
// (not along interlaced support material layers)
|
||||||
if ((print.has_infinite_skirt() || (_skirt_done.rbegin())->first < print.config.skirt_height)
|
if (!_skirt_done.size() == 0 && (print.has_infinite_skirt() || (_skirt_done.rbegin())->first < print.config.skirt_height)
|
||||||
&& typeid(layer) != typeid(SupportLayer*)
|
&& typeid(layer) != typeid(SupportLayer*)
|
||||||
&& _skirt_done.count(scale_(layer->print_z)) > 0
|
&& _skirt_done.count(scale_(layer->print_z)) > 0
|
||||||
&& layer->id() < static_cast<size_t>(obj.config.raft_layers)) {
|
&& layer->id() < static_cast<size_t>(obj.config.raft_layers)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user