mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Write active material metadata to ufp when saving.
Add function to fetch package_id using only information from XmlMaterialProfile material container. The only piece of information associating the material container and the package together is the file_name. To find the package that owns a material we have to search each of the material package paths. It would be great to find a cleaner solution (preferable one that doesn't require invalidating the cached containers). CURA-8610
This commit is contained in:
parent
596c24657d
commit
21d59e9349
3 changed files with 69 additions and 19 deletions
|
@ -343,6 +343,9 @@ class XmlMaterialProfile(InstanceContainer):
|
|||
|
||||
return stream.getvalue().decode("utf-8")
|
||||
|
||||
def getFileName(self):
|
||||
return self.getMetaDataEntry("base_file") + ".xml.fdm_material"
|
||||
|
||||
# Recursively resolve loading inherited files
|
||||
def _resolveInheritance(self, file_name):
|
||||
xml = self._loadFile(file_name)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue