mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 04:02:04 +08:00
Fixed 'std::out_of_range' during g-code generation (SK-78 cont.)
This commit is contained in:
parent
22195b3bd7
commit
4ab775a68c
@ -405,6 +405,10 @@ PrintGCode::process_layer(size_t idx, const Layer* layer, const Points& copies)
|
||||
std::vector<double> mm3_per_mm;
|
||||
for (auto region_id = 0U; region_id < _print.regions.size(); ++region_id) {
|
||||
const PrintRegion* region = _print.get_region(region_id);
|
||||
if( region_id >= layer->region_count() ){
|
||||
std::cerr<<"Layer #"<<layer->id()<<" doesn't have region "<<region_id<<". The layer has only "<<layer->region_count()<<" regions."<<std::endl;
|
||||
break;
|
||||
}
|
||||
const LayerRegion* layerm = layer->get_region(region_id);
|
||||
|
||||
if (!(region->config.get_abs_value("perimeter_speed") > 0 &&
|
||||
|
Loading…
x
Reference in New Issue
Block a user