mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-10 00:07:51 -06:00
Replace deprecated .getContainer() calls with .container
part of CURA-6600
This commit is contained in:
parent
47fe4b4c90
commit
7fb9642e45
13 changed files with 49 additions and 49 deletions
|
@ -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():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue