Even better fallbacks for unknown subprofiles

These fallbacks specify their types so that they can be found with the filters.

Contributes to issue CURA-844.
This commit is contained in:
Ghostkeeper 2016-07-13 12:06:07 +02:00
parent de408666c3
commit b33c2f9c25
No known key found for this signature in database
GPG key ID: 701948C5954A7385

View file

@ -47,11 +47,11 @@ class MachineInstance:
raise UM.VersionUpgrade.InvalidVersionException("The version of this machine instance is wrong. It must be 1.")
self._type_name = config.get("general", "type")
self._variant_name = config.get("general", "variant", fallback = "empty")
self._variant_name = config.get("general", "variant", fallback = "empty_variant")
self._name = config.get("general", "name", fallback = "")
self._key = config.get("general", "key", fallback = None)
self._active_profile_name = config.get("general", "active_profile", fallback = "empty")
self._active_material_name = config.get("general", "material", fallback = "empty")
self._active_profile_name = config.get("general", "active_profile", fallback = "empty_quality")
self._active_material_name = config.get("general", "material", fallback = "empty_material")
self._machine_setting_overrides = {}
for key, value in config["machine_settings"].items():