mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Add support for ZAE files
Contributes to issue CURA-6739.
This commit is contained in:
parent
714e6f191d
commit
bac77c0609
2 changed files with 12 additions and 1 deletions
|
@ -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
|
||||||
|
|
|
@ -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")
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue