FIX: auto arranging crash due to wrong extruder_ids
jira: STUDIO-10449 Change-Id: Ia4614a67843c714c46e5fbf7c888a1ac45ef378d
This commit is contained in:
parent
aeb3d20ad8
commit
ef8e81c04a
|
@ -3998,6 +3998,7 @@ void ModelInstance::get_arrange_polygon(void *ap, const Slic3r::DynamicPrintConf
|
|||
if (op2 && (extruder_id = op2->getInt()) > 0) ret.extrude_ids.push_back(extruder_id);
|
||||
}
|
||||
|
||||
ret.extrude_ids.erase(std::unique(ret.extrude_ids.begin(), ret.extrude_ids.end()), ret.extrude_ids.end());
|
||||
if (ret.extrude_ids.empty()) // the default extruder
|
||||
ret.extrude_ids.push_back(1);
|
||||
|
||||
|
|
Loading…
Reference in New Issue