mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-22 22:24:01 -06:00
DoubleSlider: Init extruder sequence in respect to the extruders count
This commit is contained in:
parent
f3371a3b84
commit
37ba18a8c3
2 changed files with 11 additions and 0 deletions
|
@ -180,6 +180,13 @@ struct ExtrudersSequence
|
|||
return;// last item can't be deleted
|
||||
extruders.erase(extruders.begin() + pos);
|
||||
}
|
||||
|
||||
void init(size_t extruders_count)
|
||||
{
|
||||
extruders.clear();
|
||||
for (size_t extruder = 0; extruder < extruders_count; extruder++)
|
||||
extruders.push_back(extruder);
|
||||
}
|
||||
};
|
||||
|
||||
class Control : public wxControl
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue