mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-13 19:53:17 +08:00
Dots in the ID no longer confuse workspace reader
CURA-3450
This commit is contained in:
parent
30eca943d0
commit
bae7af1ea0
@ -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…
x
Reference in New Issue
Block a user