mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -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)
|
||||
|
||||
def clearData(self):
|
||||
self._metadata = {}
|
||||
self._metadata = {"id": self.getId()}
|
||||
self.setName("")
|
||||
self._definition = None
|
||||
self._instances = {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue