mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-08 22:35:03 -06:00
Merge branch 'feature_filter_materials_by_diameter' of git://github.com/fieldOfView/Cura
This commit is contained in:
commit
397b08ce6d
5 changed files with 34 additions and 7 deletions
|
@ -118,6 +118,7 @@ class XmlMaterialProfile(InstanceContainer):
|
|||
metadata.pop("variant", "")
|
||||
metadata.pop("type", "")
|
||||
metadata.pop("base_file", "")
|
||||
metadata.pop("approximate_diameter", "")
|
||||
|
||||
## Begin Name Block
|
||||
builder.start("name")
|
||||
|
@ -437,6 +438,7 @@ class XmlMaterialProfile(InstanceContainer):
|
|||
Logger.log("d", "Unsupported material setting %s", key)
|
||||
self._cached_values = global_setting_values
|
||||
|
||||
meta_data["approximate_diameter"] = round(diameter)
|
||||
meta_data["compatible"] = global_compatibility
|
||||
self.setMetaData(meta_data)
|
||||
self._dirty = False
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue