mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-27 09:59:48 -07:00
FIX: object params variant crash
Change-Id: Ia67b98c29a0cc97f8479911ffdefb942cb6c751f Jira: none (cherry picked from commit 8bf65c0963d1ee39bba12f67f33177d4ac6d6a60)
This commit is contained in:
parent
2a35173b8c
commit
660d2ee686
4 changed files with 26 additions and 7 deletions
|
|
@ -527,6 +527,10 @@ std::vector<std::map<int, int>> get_extruder_ams_count(const std::vector<std::st
|
|||
std::vector<std::map<int, int>> extruder_ams_counts;
|
||||
for (const std::string& str : strs) {
|
||||
std::map<int, int> ams_count_info;
|
||||
if (str.empty()) {
|
||||
extruder_ams_counts.emplace_back(ams_count_info);
|
||||
continue;
|
||||
}
|
||||
std::vector<std::string> ams_infos;
|
||||
boost::algorithm::split(ams_infos, str, boost::algorithm::is_any_of("|"));
|
||||
for (const std::string& ams_info : ams_infos) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue