mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-09 07:56:22 -06:00
Add support for .DAE files
Contributes to issue CURA-6739.
This commit is contained in:
parent
1f534db508
commit
3a3ba6d590
2 changed files with 13 additions and 2 deletions
|
@ -27,7 +27,14 @@ class TrimeshReader(MeshReader):
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
self._supported_extensions = [".ply"]
|
self._supported_extensions = [".dae", ".ply"]
|
||||||
|
MimeTypeDatabase.addMimeType(
|
||||||
|
MimeType(
|
||||||
|
name = "model/vnd.collada+xml",
|
||||||
|
comment = "COLLADA Digital Asset Exchange",
|
||||||
|
suffixes = ["dae"]
|
||||||
|
)
|
||||||
|
)
|
||||||
MimeTypeDatabase.addMimeType(
|
MimeTypeDatabase.addMimeType(
|
||||||
MimeType(
|
MimeType(
|
||||||
name = "application/x-ply", # Wikipedia lists the MIME type as "text/plain" but that won't do as it's not unique to PLY files.
|
name = "application/x-ply", # Wikipedia lists the MIME type as "text/plain" but that won't do as it's not unique to PLY files.
|
||||||
|
|
|
@ -10,9 +10,13 @@ i18n_catalog = i18nCatalog("uranium")
|
||||||
def getMetaData():
|
def getMetaData():
|
||||||
return {
|
return {
|
||||||
"mesh_reader": [
|
"mesh_reader": [
|
||||||
|
{
|
||||||
|
"extension": "dae",
|
||||||
|
"description": i18n_catalog.i18nc("@item:inlistbox", "COLLADA Digital Asset Exchange")
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"extension": "ply",
|
"extension": "ply",
|
||||||
"description": i18n_catalog.i18nc("@item:inlistbox", "PLY File")
|
"description": i18n_catalog.i18nc("@item:inlistbox", "Stanford Triangle Format")
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue