mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-15 02:37:51 -06:00
Auto assignement of extruder, after object's splitting to parts
This commit is contained in:
parent
e92cf311db
commit
9993f2215d
2 changed files with 37 additions and 9 deletions
|
@ -230,6 +230,8 @@ private:
|
|||
// all objects may share mutliple materials.
|
||||
class Model
|
||||
{
|
||||
static unsigned int s_auto_extruder_id;
|
||||
|
||||
public:
|
||||
// Materials are owned by a model and referenced by objects through t_model_material_id.
|
||||
// Single material may be shared by multiple models.
|
||||
|
@ -288,6 +290,10 @@ public:
|
|||
bool fits_print_volume(const FullPrintConfig &config) const;
|
||||
|
||||
void print_info() const { for (const ModelObject *o : this->objects) o->print_info(); }
|
||||
|
||||
static unsigned int get_auto_extruder_id();
|
||||
static std::string get_auto_extruder_id_as_string();
|
||||
static void reset_auto_extruder_id();
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue