FIX: auto arranging crash due to wrong extruder_ids

jira: STUDIO-10449
Change-Id: Ia4614a67843c714c46e5fbf7c888a1ac45ef378d
This commit is contained in:
Arthur 2025-02-14 20:16:08 +08:00 committed by lane.wei
parent aeb3d20ad8
commit ef8e81c04a
1 changed files with 1 additions and 0 deletions

View File

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