Add support for OpenCTM

Contributes to issue CURA-6739.
This commit is contained in:
Ghostkeeper 2019-08-29 15:40:49 +02:00
parent 41c5b87eae
commit 714e6f191d
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276
2 changed files with 12 additions and 1 deletions

View file

@ -27,7 +27,14 @@ class TrimeshReader(MeshReader):
def __init__(self) -> None:
super().__init__()
self._supported_extensions = [".dae", ".gltf", ".glb", ".ply"]
self._supported_extensions = [".ctm", ".dae", ".gltf", ".glb", ".ply"]
MimeTypeDatabase.addMimeType(
MimeType(
name = "application/x-ctm",
comment = "Open Compressed Triangle Mesh",
suffixes = ["ctm"]
)
)
MimeTypeDatabase.addMimeType(
MimeType(
name = "model/vnd.collada+xml",