Fix 'one perimeter on first layer'

supermerill/SuperSlicer#1687
This commit is contained in:
supermerill 2021-10-24 11:42:51 +02:00
parent 75b59455b6
commit 42ce221e33
2 changed files with 2 additions and 2 deletions

View File

@ -683,7 +683,7 @@ void PerimeterGenerator::process()
last = std::move(next_onion);
//store surface for top infill if only_one_perimeter_top
if(i==0 && ((layer->id() == 0 && this->config->only_one_perimeter_first_layer) || (config->only_one_perimeter_top && this->upper_slices != NULL))){
if(i==0 && (config->only_one_perimeter_top && this->upper_slices != NULL)){
if (this->config->only_one_perimeter_top_other_algo) {
//split the polygons with top/not_top
//get the offset from solid surface anchor

View File

@ -84,7 +84,7 @@ public:
ExtrusionEntityCollection* gap_fill,
// Infills without the gap fills
SurfaceCollection* fill_surfaces)
: slices(slices), lower_slices(nullptr), upper_slices(nullptr),
: slices(slices), lower_slices(nullptr), upper_slices(nullptr), layer(nullptr),
perimeter_flow(flow), ext_perimeter_flow(flow),
overhang_flow(flow), solid_infill_flow(flow),
config(config), object_config(object_config), print_config(print_config),