mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-01 22:37:03 +00:00
FIX: check if the filament is unknown
jira: [STUDIO-12085] Change-Id: Ibf40d7a5106a40385aff5c769e5b7e5cdb866de0 (cherry picked from commit 012b6f2395d66b7b1bdafa3e851ca4b2f874eb23)
This commit is contained in:
@@ -178,6 +178,21 @@ void AMSinfo::parse_ext_info(MachineObject* obj, AmsTray tray) {
|
||||
this->cans.push_back(info);
|
||||
}
|
||||
|
||||
Caninfo AMSinfo::get_caninfo(const std::string& can_id, bool& found) const
|
||||
{
|
||||
found = false;
|
||||
for (const auto& can_info : cans)
|
||||
{
|
||||
if (can_info.can_id == can_id)
|
||||
{
|
||||
found = true;
|
||||
return can_info;
|
||||
}
|
||||
}
|
||||
|
||||
return Caninfo();
|
||||
};
|
||||
|
||||
/*************************************************
|
||||
Description:AMSExtText
|
||||
**************************************************/
|
||||
|
||||
Reference in New Issue
Block a user