mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Remove redundant setting of name
It's just copied along with the rest of the metadata now. Contributes to issue CURA-4243.
This commit is contained in:
parent
d24fa3bc3b
commit
a08875c5eb
1 changed files with 0 additions and 2 deletions
|
@ -566,8 +566,6 @@ class XmlMaterialProfile(InstanceContainer):
|
|||
new_material = XmlMaterialProfile(new_material_id)
|
||||
is_new_material = True
|
||||
|
||||
# Update the private directly, as we want to prevent the lookup that is done when using setName
|
||||
new_material.setName(self.getName())
|
||||
new_material.setMetaData(copy.deepcopy(self.getMetaData()))
|
||||
new_material.setDefinition(definition)
|
||||
# Don't use setMetadata, as that overrides it for all materials with same base file
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue