mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Saving g-code no longer crashes
This commit is contained in:
parent
fc99cac05e
commit
aba0392728
1 changed files with 3 additions and 1 deletions
|
@ -54,7 +54,9 @@ class SliceInfo(Extension):
|
|||
# Get total material used (in mm^3)
|
||||
print_information = Application.getInstance().getPrintInformation()
|
||||
material_radius = 0.5 * global_container_stack.getProperty("material_diameter", "value")
|
||||
material_used = math.pi * material_radius * material_radius * print_information.materialAmounts #Volume of material used
|
||||
|
||||
# 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
|
||||
|
||||
# Get model information (bounding boxes, hashes and transformation matrix)
|
||||
models_info = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue