Browse Source

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.
Ghostkeeper 3 years ago
parent
commit
2464f64129
1 changed files with 2 additions and 2 deletions
  1. 2 2
      cura/Machines/Models/MachineModelUtils.py

+ 2 - 2
cura/Machines/Models/MachineModelUtils.py

@@ -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.
 
 from typing import TYPE_CHECKING
@@ -34,4 +34,4 @@ def fetchLayerHeight(quality_group: "QualityGroup") -> float:
     if isinstance(layer_height, SettingFunction):
         layer_height = layer_height(global_stack)
 
-    return float(layer_height)
+    return round(float(layer_height), 3)