mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 14:39:02 +08:00
Fix weight calculation
CURA-1038
This commit is contained in:
parent
6602177102
commit
1f53ce0d4d
@ -95,7 +95,7 @@ class PrintInformation(QObject):
|
||||
else: # Machine with no extruder stacks
|
||||
density = Application.getInstance().getGlobalContainerStack().getMetaDataEntry("properties", {}).get("density", 0)
|
||||
|
||||
self._material_weights.append(float(amount) * float(density))
|
||||
self._material_weights.append(float(amount) * float(density) / 1000)
|
||||
self._material_lengths.append(round((amount / (math.pi * r ** 2)) / 1000, 2))
|
||||
self.materialLengthsChanged.emit()
|
||||
self.materialWeightsChanged.emit()
|
||||
|
Loading…
x
Reference in New Issue
Block a user