mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-11 16:57:53 -06: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:
parent
2be23c8b14
commit
506cbcb4a7
3 changed files with 27 additions and 10 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue