mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Both material weights & lengths are now exposed
CURA-1038
This commit is contained in:
parent
d48b4bf790
commit
7a43164654
3 changed files with 28 additions and 11 deletions
|
@ -59,7 +59,7 @@ class SliceInfo(Extension):
|
|||
material_radius = 0.5 * global_container_stack.getProperty("material_diameter", "value")
|
||||
|
||||
# TODO: Send material per extruder instead of mashing it on a pile
|
||||
material_used = math.pi * material_radius * material_radius * sum(print_information.materialAmounts) #Volume of all materials used
|
||||
material_used = math.pi * material_radius * material_radius * sum(print_information.materialLengths) #Volume of all materials used
|
||||
|
||||
# Get model information (bounding boxes, hashes and transformation matrix)
|
||||
models_info = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue