mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Revert "Check for Ultimaker printers based on manufacturer"
This reverts commit 5b36b4fb84
.
This commit is contained in:
parent
07ac09e878
commit
18e3e084a5
1 changed files with 7 additions and 5 deletions
|
@ -40,12 +40,14 @@ class GenericMaterialsModel(BaseMaterialsModel):
|
|||
self.setItems([])
|
||||
return
|
||||
|
||||
# Check if it's an Ultimaker printer
|
||||
printer_manufacturer = global_stack.getMetaDataEntry("manufacturer", "")
|
||||
is_ultimaker_printer = "ultimaker" in printer_manufacturer.lower()
|
||||
#special case only for Ultimaker printers, filter the generic list
|
||||
printer_name = global_stack.getMetaDataEntry("name", "empty")
|
||||
filter_ultimaker_printers = False
|
||||
if printer_name and printer_name[:9] == "Ultimaker":
|
||||
filter_ultimaker_printers = True
|
||||
|
||||
# For Ultimaker printers, only show the generic materials that are supported.
|
||||
if not is_ultimaker_printer:
|
||||
# Special case, Ultimaker generic list also should be filtered
|
||||
if filter_ultimaker_printers is False:
|
||||
item_list = self._getGenericProfiles(available_material_dict)
|
||||
else:
|
||||
item_list = self._getUltimakerGenericProfiles(available_material_dict)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue