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:
Ghostkeeper 2017-10-31 11:11:56 +01:00
parent d24fa3bc3b
commit a08875c5eb
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -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