mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 18:59:11 +08:00
Added MimeTypeDatabase for UFP extension
CURA-5323
This commit is contained in:
parent
9779c41071
commit
d083426497
@ -11,6 +11,16 @@ except ImportError:
|
|||||||
|
|
||||||
from UM.i18n import i18nCatalog #To translate the file format description.
|
from UM.i18n import i18nCatalog #To translate the file format description.
|
||||||
from UM.Mesh.MeshWriter import MeshWriter #For the binary mode flag.
|
from UM.Mesh.MeshWriter import MeshWriter #For the binary mode flag.
|
||||||
|
from UM.MimeTypeDatabase import MimeTypeDatabase, MimeType
|
||||||
|
|
||||||
|
|
||||||
|
MimeTypeDatabase.addMimeType(
|
||||||
|
MimeType(
|
||||||
|
name = "application/x-cura-stl-file",
|
||||||
|
comment = "Cura UFP File",
|
||||||
|
suffixes = ["ufp"]
|
||||||
|
)
|
||||||
|
)
|
||||||
|
|
||||||
i18n_catalog = i18nCatalog("cura")
|
i18n_catalog = i18nCatalog("cura")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user