mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Fix checking material_used per extruder for analytics - CURA-4858
This commit is contained in:
parent
9488c39f68
commit
d1f2d6f45d
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ class SliceInfo(Extension):
|
|||
"brand": extruder.material.getMetaData().get("brand", "")
|
||||
}
|
||||
extruder_position = int(extruder.getMetaDataEntry("position", "0"))
|
||||
if extruder_position in print_information.materialLengths:
|
||||
if len(print_information.materialLengths) > extruder_position:
|
||||
extruder_dict["material_used"] = print_information.materialLengths[extruder_position]
|
||||
extruder_dict["variant"] = extruder.variant.getName()
|
||||
extruder_dict["nozzle_size"] = extruder.getProperty("machine_nozzle_size", "value")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue