mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 15:37:30 -06:00
Fix crash when slicing batch PA pattern test (#8786)
* Fix crash when slicing batch PA pattern test (SoftFever/OrcaSlicer#8777)
This commit is contained in:
parent
ff9178b830
commit
70d7768868
1 changed files with 1 additions and 0 deletions
|
@ -45,6 +45,7 @@ void GCodeWriter::apply_print_config(const PrintConfig &print_config)
|
|||
void GCodeWriter::set_extruders(std::vector<unsigned int> extruder_ids)
|
||||
{
|
||||
std::sort(extruder_ids.begin(), extruder_ids.end());
|
||||
m_extruder = nullptr; // this points to object inside `m_extruders`, so should be cleared too
|
||||
m_extruders.clear();
|
||||
m_extruders.reserve(extruder_ids.size());
|
||||
for (unsigned int extruder_id : extruder_ids)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue