Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGhostkeeper <rubend@tutanota.com>2019-08-29 16:52:34 +0300
committerGhostkeeper <rubend@tutanota.com>2019-08-29 16:52:34 +0300
commitbac77c0609871b6ad723a78826bb6937debf4c30 (patch)
tree172ce9e27977ad01dc0b0a7b1d691448ac179d9c /plugins/TrimeshReader
parent714e6f191d4625d1f7ae039ee90044ba790b4e0d (diff)
Add support for ZAE files
Contributes to issue CURA-6739.
Diffstat (limited to 'plugins/TrimeshReader')
-rw-r--r--plugins/TrimeshReader/TrimeshReader.py9
-rw-r--r--plugins/TrimeshReader/__init__.py4
2 files changed, 12 insertions, 1 deletions
diff --git a/plugins/TrimeshReader/TrimeshReader.py b/plugins/TrimeshReader/TrimeshReader.py
index 5dbbfb16de..d1e4b73962 100644
--- a/plugins/TrimeshReader/TrimeshReader.py
+++ b/plugins/TrimeshReader/TrimeshReader.py
@@ -27,7 +27,7 @@ class TrimeshReader(MeshReader):
def __init__(self) -> None:
super().__init__()
- self._supported_extensions = [".ctm", ".dae", ".gltf", ".glb", ".ply"]
+ self._supported_extensions = [".ctm", ".dae", ".gltf", ".glb", ".ply", ".zae"]
MimeTypeDatabase.addMimeType(
MimeType(
name = "application/x-ctm",
@@ -71,6 +71,13 @@ class TrimeshReader(MeshReader):
suffixes = ["ply"]
)
)
+ MimeTypeDatabase.addMimeType(
+ MimeType(
+ name = "model/vnd.collada+xml+zip",
+ comment = "Compressed COLLADA Digital Asset Exchange",
+ suffixes = ["zae"]
+ )
+ )
## Reads a file using Trimesh.
# \param file_name The file path. This is assumed to be one of the file
diff --git a/plugins/TrimeshReader/__init__.py b/plugins/TrimeshReader/__init__.py
index 06962fa29f..5e2885238f 100644
--- a/plugins/TrimeshReader/__init__.py
+++ b/plugins/TrimeshReader/__init__.py
@@ -34,6 +34,10 @@ def getMetaData():
{
"extension": "ply",
"description": i18n_catalog.i18nc("@item:inlistbox", "Stanford Triangle Format")
+ },
+ {
+ "extension": "zae",
+ "description": i18n_catalog.i18nc("@item:inlistbox", "Compressed COLLADA Digital Asset Exchange")
}
]
}