mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Dots in the ID no longer confuse workspace reader
CURA-3450
This commit is contained in:
parent
30eca943d0
commit
bae7af1ea0
1 changed files with 3 additions and 1 deletions
|
@ -476,7 +476,9 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
|||
return nodes
|
||||
|
||||
def _stripFileToId(self, file):
|
||||
return file.replace("Cura/", "").split(".")[0]
|
||||
mime_type = MimeTypeDatabase.getMimeTypeForFile(file)
|
||||
file = mime_type.stripExtension(file)
|
||||
return file.replace("Cura/", "")
|
||||
|
||||
def _getXmlProfileClass(self):
|
||||
return self._container_registry.getContainerForMimeType(MimeTypeDatabase.getMimeType("application/x-ultimaker-material-profile"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue