mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Fix KeyError color_code in BaseMaterialsModel
This commit is contained in:
parent
3e3f1cb03d
commit
40c4e9c5df
1 changed files with 1 additions and 1 deletions
|
@ -124,7 +124,7 @@ class BaseMaterialsModel(ListModel):
|
|||
"description": metadata["description"],
|
||||
"material": metadata["material"],
|
||||
"color_name": metadata["color_name"],
|
||||
"color_code": metadata["color_code"],
|
||||
"color_code": metadata.get("color_code", ""),
|
||||
"density": metadata.get("properties", {}).get("density", ""),
|
||||
"diameter": metadata.get("properties", {}).get("diameter", ""),
|
||||
"approximate_diameter": metadata["approximate_diameter"],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue