mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-17 03:15:54 +08:00
Correctly clear PP ironings list when reslicing
supermerill/SuperSlicer#1207
This commit is contained in:
parent
653c8bdf95
commit
3474008331
@ -377,8 +377,10 @@ void export_group_fills_to_svg(const char *path, const std::vector<SurfaceFill>
|
|||||||
// friend to Layer
|
// friend to Layer
|
||||||
void Layer::make_fills(FillAdaptive::Octree* adaptive_fill_octree, FillAdaptive::Octree* support_fill_octree)
|
void Layer::make_fills(FillAdaptive::Octree* adaptive_fill_octree, FillAdaptive::Octree* support_fill_octree)
|
||||||
{
|
{
|
||||||
for (LayerRegion *layerm : m_regions)
|
for (LayerRegion* layerm : m_regions) {
|
||||||
layerm->fills.clear();
|
layerm->fills.clear();
|
||||||
|
layerm->ironings.clear();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef SLIC3R_DEBUG_SLICE_PROCESSING
|
#ifdef SLIC3R_DEBUG_SLICE_PROCESSING
|
||||||
|
@ -127,6 +127,7 @@ void Layer::make_perimeters()
|
|||||||
if ((*layerm)->slices().empty()) {
|
if ((*layerm)->slices().empty()) {
|
||||||
(*layerm)->perimeters.clear();
|
(*layerm)->perimeters.clear();
|
||||||
(*layerm)->fills.clear();
|
(*layerm)->fills.clear();
|
||||||
|
(*layerm)->ironings.clear();
|
||||||
(*layerm)->thin_fills.clear();
|
(*layerm)->thin_fills.clear();
|
||||||
} else {
|
} else {
|
||||||
size_t region_id = layerm - m_regions.begin();
|
size_t region_id = layerm - m_regions.begin();
|
||||||
|
@ -86,7 +86,7 @@ public:
|
|||||||
void export_region_fill_surfaces_to_svg_debug(const char *name) const;
|
void export_region_fill_surfaces_to_svg_debug(const char *name) const;
|
||||||
|
|
||||||
// Is there any valid extrusion assigned to this LayerRegion?
|
// Is there any valid extrusion assigned to this LayerRegion?
|
||||||
bool has_extrusions() const { return !this->perimeters.entities.empty() || !this->fills.entities.empty() || !this->ironings.entities.empty(); }
|
bool has_extrusions() const { return !this->perimeters.entities.empty() || !this->fills.entities.empty() || !this->ironings.entities.empty() || !this->thin_fills.entities.empty(); }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
friend class Layer;
|
friend class Layer;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user