mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 01:35:53 +08:00
Revert "Check for Ultimaker printers based on manufacturer"
This reverts commit 5b36b4fb845cd1468f6539fb401b8d9782472322.
This commit is contained in:
parent
07ac09e878
commit
18e3e084a5
@ -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…
x
Reference in New Issue
Block a user