From a08875c5ebbc98ce23556ae231b9ea20e0957ccf Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 31 Oct 2017 11:11:56 +0100 Subject: [PATCH] Remove redundant setting of name It's just copied along with the rest of the metadata now. Contributes to issue CURA-4243. --- plugins/XmlMaterialProfile/XmlMaterialProfile.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/plugins/XmlMaterialProfile/XmlMaterialProfile.py b/plugins/XmlMaterialProfile/XmlMaterialProfile.py index 74d7cc93ee..df148c19f1 100644 --- a/plugins/XmlMaterialProfile/XmlMaterialProfile.py +++ b/plugins/XmlMaterialProfile/XmlMaterialProfile.py @@ -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