From 8eaec149fad8c2d592c0f133d798a5da7b92ac14 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Mon, 30 Oct 2017 15:54:26 +0100 Subject: [PATCH] Make sure the ID stays in the metadata when clearing it Previously the ID was also exempted from the clear. Contributes to issue CURA-4243. --- plugins/XmlMaterialProfile/XmlMaterialProfile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/XmlMaterialProfile/XmlMaterialProfile.py b/plugins/XmlMaterialProfile/XmlMaterialProfile.py index 4d828a4314..651f2906ff 100644 --- a/plugins/XmlMaterialProfile/XmlMaterialProfile.py +++ b/plugins/XmlMaterialProfile/XmlMaterialProfile.py @@ -386,7 +386,7 @@ class XmlMaterialProfile(InstanceContainer): first.append(element) def clearData(self): - self._metadata = {} + self._metadata = {"id": self.getId()} self.setName("") self._definition = None self._instances = {}