Fix of infill type update with vase mode enabled after change

of the number of bottom layers.
related to [2.2.1-RC] Vase mode prints base no matter what #3823
This commit is contained in:
bubnikv 2020-03-14 11:59:50 +01:00
parent bd1a128ef8
commit 7f376fa927
4 changed files with 14 additions and 9 deletions

View file

@ -34,6 +34,10 @@ public:
void remove_type(const SurfaceType type);
void remove_types(const SurfaceType *types, int ntypes);
void filter_by_type(SurfaceType type, Polygons* polygons);
void set_type(SurfaceType type) {
for (Surface &surface : this->surfaces)
surface.surface_type = type;
}
void clear() { surfaces.clear(); }
bool empty() const { return surfaces.empty(); }