mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
ENH:add protection when Unable to get filtration supplier information
Change-Id: I64481ace6948cfab67bd864c2925cdce7dcae034
This commit is contained in:
@@ -3109,7 +3109,11 @@ void SelectMachineDialog::set_default()
|
||||
std::string filament_type = iter->config.get_filament_type(display_filament_type);
|
||||
display_materials.push_back(display_filament_type);
|
||||
materials.push_back(filament_type);
|
||||
brands.push_back(iter->vendor->name);
|
||||
|
||||
if (iter->vendor && !iter->vendor->name.empty())
|
||||
brands.push_back(iter->vendor->name);
|
||||
else
|
||||
brands.push_back("");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user