Auto assignement of extruder, after object's splitting to parts

This commit is contained in:
Enrico Turri 2018-04-10 12:17:55 +02:00
parent e92cf311db
commit 9993f2215d
2 changed files with 37 additions and 9 deletions

View file

@ -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();
};
}