mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-21 21:58:01 -06:00
Round to two digits, not one
Contributes to Asana issue 38958940640344
This commit is contained in:
parent
0c1b4934bf
commit
ccae79c378
1 changed files with 1 additions and 1 deletions
|
@ -150,7 +150,7 @@ class PrintInformation(QObject):
|
||||||
|
|
||||||
# Material amount is sent as an amount of mm^3, so calculate length from that
|
# Material amount is sent as an amount of mm^3, so calculate length from that
|
||||||
r = self._current_settings.getSettingValueByKey("material_diameter") / 2
|
r = self._current_settings.getSettingValueByKey("material_diameter") / 2
|
||||||
self._material_amount = round((amount / (math.pi * r ** 2)) / 1000, 1)
|
self._material_amount = round((amount / (math.pi * r ** 2)) / 1000, 2)
|
||||||
self.materialAmountChanged.emit()
|
self.materialAmountChanged.emit()
|
||||||
|
|
||||||
if not self._enabled:
|
if not self._enabled:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue