mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Remove (all?, most?) deprecated ContainerNode.getMetaDataEntry calls.
part of CURA-6600
This commit is contained in:
parent
5039d8db05
commit
507cb356d2
12 changed files with 24 additions and 24 deletions
|
@ -20,11 +20,11 @@ class GenericMaterialsModel(BaseMaterialsModel):
|
|||
|
||||
for root_material_id, container_node in self._available_materials.items():
|
||||
# Do not include the materials from a to-be-removed package
|
||||
if bool(container_node.getMetaDataEntry("removed", False)):
|
||||
if bool(container_node.container.getMetaDataEntry("removed", False)):
|
||||
continue
|
||||
|
||||
# Only add results for generic materials
|
||||
if container_node.getMetaDataEntry("brand", "unknown").lower() != "generic":
|
||||
if container_node.container.getMetaDataEntry("brand", "unknown").lower() != "generic":
|
||||
continue
|
||||
|
||||
item = self._createMaterialItem(root_material_id, container_node)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue