WIP Lightning infil: Cleaning up some compiler errors

This commit is contained in:
Vojtech Bubnik 2021-12-01 19:02:37 +01:00
parent 481def3205
commit 9cf483fe08
4 changed files with 4 additions and 5 deletions

View file

@ -32,7 +32,7 @@ Generator::Generator(const PrintObject &print_object)
const PrintRegionConfig &region_config = print_object.shared_regions()->all_regions.front()->config();
const std::vector<double> &nozzle_diameters = print_config.nozzle_diameter.values;
double max_nozzle_diameter = *std::max_element(nozzle_diameters.begin(), nozzle_diameters.end());
const int infill_extruder = region_config.infill_extruder.value;
// const int infill_extruder = region_config.infill_extruder.value;
const double default_infill_extrusion_width = Flow::auto_extrusion_width(FlowRole::frInfill, float(max_nozzle_diameter));
// Note: There's not going to be a layer below the first one, so the 'initial layer height' doesn't have to be taken into account.
const double layer_thickness = object_config.layer_height;