mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-17 02:22:17 +00:00
Fix of G-code invalidation on "wipe_into_object" "wipe_into_infill"
changes. WIP: Fix of "levitating objects cannot be sliced".
This commit is contained in:
@@ -17,6 +17,16 @@ Layer::~Layer()
|
||||
m_regions.clear();
|
||||
}
|
||||
|
||||
// Test whether whether there are any slices assigned to this layer.
|
||||
bool Layer::empty() const
|
||||
{
|
||||
for (const LayerRegion *layerm : m_regions)
|
||||
if (layerm != nullptr && ! layerm->slices.empty())
|
||||
// Non empty layer.
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
|
||||
LayerRegion* Layer::add_region(PrintRegion* print_region)
|
||||
{
|
||||
m_regions.emplace_back(new LayerRegion(this, print_region));
|
||||
|
||||
Reference in New Issue
Block a user