Use correct material profile in extruder stack

The material profile is more specific inside a material profile if the machine has material quality profiles.

Contributes to issue CURA-844.
This commit is contained in:
Ghostkeeper 2016-08-09 18:06:03 +02:00
parent 4d13622a6e
commit a0df0c76de
No known key found for this signature in database
GPG key ID: 701948C5954A7385
2 changed files with 5 additions and 4 deletions

View file

@ -146,7 +146,6 @@ class Profile:
config_copy.read_dict(config) #Copy the config to a new ConfigParser instance.
variant_id_new_materials = VersionUpgrade21to22.VersionUpgrade21to22.VersionUpgrade21to22.translateVariantForMaterials(variant_id, translated_machine)
config_copy.set("metadata", "material", "{material}_{variant}".format(material = material_id, variant = variant_id_new_materials))
config_copy.set("general", "name", self._name + " " + material_id + " " + variant_id) #DEBUG
configs.append(config_copy)
else:
configs.append(config)