mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
Fix MIME type of material resources
Because of this wrong MIME type, the material profile would get saved using the preferred extension of the instance container, .inst.cfg. This would then get interpreted as having the MIME type of instance containers, and then it would fail to load because it is not an INI file. Now it stores it as .xml.fdm_material and so the MIME type database interprets it as an XML file. Contributes to issue CURA-3937.
This commit is contained in:
parent
2adf97ba2d
commit
694254e299
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ def register(app):
|
|||
from UM.VersionUpgradeManager import VersionUpgradeManager
|
||||
VersionUpgradeManager.getInstance().registerCurrentVersion(
|
||||
("materials", XmlMaterialProfile.XmlMaterialProfile.Version * 1000000 + CuraApplication.SettingVersion),
|
||||
(CuraApplication.ResourceTypes.MaterialInstanceContainer, "application/x-uranium-instancecontainer")
|
||||
(CuraApplication.ResourceTypes.MaterialInstanceContainer, "application/x-ultimaker-material-profile")
|
||||
)
|
||||
|
||||
return {"version_upgrade": upgrader,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue