mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-14 01:33:14 +08: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
@ -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…
x
Reference in New Issue
Block a user