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
|
||||
|
|
|
@ -178,6 +178,7 @@ class Print
|
|||
bool invalidate_state_by_config_options(const std::vector<t_config_option_key> &opt_keys);
|
||||
bool invalidate_step(PrintStep step);
|
||||
bool invalidate_all_steps();
|
||||
bool step_done(PrintObjectStep step) const;
|
||||
|
||||
void add_model_object(ModelObject* model_object, int idx = -1);
|
||||
bool apply_config(DynamicPrintConfig config);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue