diff options
author | Ghostkeeper <rubend@tutanota.com> | 2017-06-16 16:54:42 +0300 |
---|---|---|
committer | Ghostkeeper <rubend@tutanota.com> | 2017-06-16 16:54:42 +0300 |
commit | 694254e299bdccad8c092ab1ade36693ab64007f (patch) | |
tree | 7845c88c008e92281f47b6939c966e5f2579dac2 /plugins | |
parent | 2adf97ba2d84f771a5d8ec02ea9f7cdec7209c7d (diff) |
Fix MIME type of material resources2.6.0
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.
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/XmlMaterialProfile/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/XmlMaterialProfile/__init__.py b/plugins/XmlMaterialProfile/__init__.py index d98f2efb3d..f4eb4de8b4 100644 --- a/plugins/XmlMaterialProfile/__init__.py +++ b/plugins/XmlMaterialProfile/__init__.py @@ -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, |