diff options
author | Remco Burema <r.burema@ultimaker.com> | 2019-08-15 14:40:08 +0300 |
---|---|---|
committer | Remco Burema <r.burema@ultimaker.com> | 2019-08-15 14:40:08 +0300 |
commit | 7fb9642e45827d42526ce468c53c0bc6ad69d26f (patch) | |
tree | 48c0df71f04b210fa4149ef77b3d32953a2cee3c /plugins/XmlMaterialProfile/XmlMaterialProfile.py | |
parent | 47fe4b4c90da94deae6d69d8fe86502708e086bd (diff) |
Replace deprecated .getContainer() calls with .container
part of CURA-6600
Diffstat (limited to 'plugins/XmlMaterialProfile/XmlMaterialProfile.py')
-rw-r--r-- | plugins/XmlMaterialProfile/XmlMaterialProfile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/XmlMaterialProfile/XmlMaterialProfile.py b/plugins/XmlMaterialProfile/XmlMaterialProfile.py index a26fc2eeaa..2ab9e701eb 100644 --- a/plugins/XmlMaterialProfile/XmlMaterialProfile.py +++ b/plugins/XmlMaterialProfile/XmlMaterialProfile.py @@ -89,7 +89,7 @@ class XmlMaterialProfile(InstanceContainer): self.setProperty(k, "value", v) return # Update the root material container - root_material_container = material_group.root_material_node.getContainer() + root_material_container = material_group.root_material_node.container if root_material_container is not None: root_material_container.setMetaDataEntry(key, value, apply_to_all = False) for k, v in new_setting_values_dict.items(): @@ -97,7 +97,7 @@ class XmlMaterialProfile(InstanceContainer): # Update all containers derived from it for node in material_group.derived_material_node_list: - container = node.getContainer() + container = node.container if container is not None: container.setMetaDataEntry(key, value, apply_to_all = False) for k, v in new_setting_values_dict.items(): |