mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 06:33:55 -06:00
Round layer height for display in quality menu
Otherwise it can become very long if it is calculated. Fixes one of the issues found in #9887.
This commit is contained in:
parent
2f8f98fcca
commit
2464f64129
1 changed files with 2 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
# Copyright (c) 2019 Ultimaker B.V.
|
# Copyright (c) 2021 Ultimaker B.V.
|
||||||
# Cura is released under the terms of the LGPLv3 or higher.
|
# Cura is released under the terms of the LGPLv3 or higher.
|
||||||
|
|
||||||
from typing import TYPE_CHECKING
|
from typing import TYPE_CHECKING
|
||||||
|
@ -34,4 +34,4 @@ def fetchLayerHeight(quality_group: "QualityGroup") -> float:
|
||||||
if isinstance(layer_height, SettingFunction):
|
if isinstance(layer_height, SettingFunction):
|
||||||
layer_height = layer_height(global_stack)
|
layer_height = layer_height(global_stack)
|
||||||
|
|
||||||
return float(layer_height)
|
return round(float(layer_height), 3)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue