mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 06:57:36 -06:00
Properly find used extruders when infill/wall_filament is set (#6335)
This commit is contained in:
parent
ef5bae9910
commit
8ed2911db8
3 changed files with 88 additions and 25 deletions
|
@ -382,12 +382,12 @@ std::vector<unsigned int> Print::object_extruders() const
|
|||
{
|
||||
std::vector<unsigned int> extruders;
|
||||
extruders.reserve(m_print_regions.size() * m_objects.size() * 3);
|
||||
// BBS
|
||||
#if 0
|
||||
|
||||
//Orca: Collect extruders from all regions.
|
||||
for (const PrintObject *object : m_objects)
|
||||
for (const PrintRegion ®ion : object->all_regions())
|
||||
region.collect_object_printing_extruders(*this, extruders);
|
||||
#else
|
||||
|
||||
for (const PrintObject* object : m_objects) {
|
||||
const ModelObject* mo = object->model_object();
|
||||
for (const ModelVolume* mv : mo->volumes) {
|
||||
|
@ -410,7 +410,6 @@ std::vector<unsigned int> Print::object_extruders() const
|
|||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
sort_remove_duplicates(extruders);
|
||||
return extruders;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue