Add support for ZAE files

Contributes to issue CURA-6739.
This commit is contained in:
Ghostkeeper 2019-08-29 15:52:34 +02:00
parent 714e6f191d
commit bac77c0609
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,7 @@ class TrimeshReader(MeshReader):
def __init__(self) -> None: def __init__(self) -> None:
super().__init__() super().__init__()
self._supported_extensions = [".ctm", ".dae", ".gltf", ".glb", ".ply"] self._supported_extensions = [".ctm", ".dae", ".gltf", ".glb", ".ply", ".zae"]
MimeTypeDatabase.addMimeType( MimeTypeDatabase.addMimeType(
MimeType( MimeType(
name = "application/x-ctm", name = "application/x-ctm",
@ -71,6 +71,13 @@ class TrimeshReader(MeshReader):
suffixes = ["ply"] suffixes = ["ply"]
) )
) )
MimeTypeDatabase.addMimeType(
MimeType(
name = "model/vnd.collada+xml+zip",
comment = "Compressed COLLADA Digital Asset Exchange",
suffixes = ["zae"]
)
)
## Reads a file using Trimesh. ## Reads a file using Trimesh.
# \param file_name The file path. This is assumed to be one of the file # \param file_name The file path. This is assumed to be one of the file

View file

@ -34,6 +34,10 @@ def getMetaData():
{ {
"extension": "ply", "extension": "ply",
"description": i18n_catalog.i18nc("@item:inlistbox", "Stanford Triangle Format") "description": i18n_catalog.i18nc("@item:inlistbox", "Stanford Triangle Format")
},
{
"extension": "zae",
"description": i18n_catalog.i18nc("@item:inlistbox", "Compressed COLLADA Digital Asset Exchange")
} }
] ]
} }