mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
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.
This commit is contained in:
parent
3a9c8d16a2
commit
8eaec149fa
1 changed files with 1 additions and 1 deletions
|
@ -386,7 +386,7 @@ class XmlMaterialProfile(InstanceContainer):
|
||||||
first.append(element)
|
first.append(element)
|
||||||
|
|
||||||
def clearData(self):
|
def clearData(self):
|
||||||
self._metadata = {}
|
self._metadata = {"id": self.getId()}
|
||||||
self.setName("")
|
self.setName("")
|
||||||
self._definition = None
|
self._definition = None
|
||||||
self._instances = {}
|
self._instances = {}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue