mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Revert "Revert "Enable prime tower mode according to materials types""
This reverts commit b99762776e
.
This commit is contained in:
parent
d009839f9e
commit
c8f9f179d9
2 changed files with 27 additions and 8 deletions
|
@ -579,8 +579,9 @@ class XmlMaterialProfile(InstanceContainer):
|
|||
|
||||
meta_data[tag_name] = entry.text
|
||||
|
||||
if tag_name in self.__material_metadata_setting_map:
|
||||
common_setting_values[self.__material_metadata_setting_map[tag_name]] = entry.text
|
||||
for tag_name, value in meta_data.items():
|
||||
if tag_name in self.__material_metadata_setting_map:
|
||||
common_setting_values[self.__material_metadata_setting_map[tag_name]] = value
|
||||
|
||||
if "description" not in meta_data:
|
||||
meta_data["description"] = ""
|
||||
|
@ -1222,7 +1223,9 @@ class XmlMaterialProfile(InstanceContainer):
|
|||
"diameter": "material_diameter"
|
||||
}
|
||||
__material_metadata_setting_map = {
|
||||
"GUID": "material_guid"
|
||||
"GUID": "material_guid",
|
||||
"material": "material_type",
|
||||
"brand": "material_brand",
|
||||
}
|
||||
|
||||
# Map of recognised namespaces with a proper prefix.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue