mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-16 03:07:55 -06:00
Move toolpaths preview to the plater dialog
This commit is contained in:
parent
98cb9f0e18
commit
e8f242ee3f
5 changed files with 83 additions and 55 deletions
|
@ -290,6 +290,19 @@ Print::invalidate_all_steps()
|
|||
return invalidated;
|
||||
}
|
||||
|
||||
// returns true if an object step is done on all objects
|
||||
// and there's at least one object
|
||||
bool
|
||||
Print::step_done(PrintObjectStep step) const
|
||||
{
|
||||
if (this->objects.empty()) return false;
|
||||
FOREACH_OBJECT(this, object) {
|
||||
if (!(*object)->state.is_done(step))
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// returns 0-based indices of used extruders
|
||||
std::set<size_t>
|
||||
Print::extruders() const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue