mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 15:48:58 +08:00
Fix lowest slice height
Don't always divide by 2. Just for slicing tolerance: Middle. And then just once. Contributes to issue CURA-7871.
This commit is contained in:
parent
538ccf5e21
commit
b83193bc0f
@ -1,4 +1,4 @@
|
|||||||
# Copyright (c) 2020 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.
|
||||||
|
|
||||||
import os.path
|
import os.path
|
||||||
@ -130,7 +130,7 @@ class SolidView(View):
|
|||||||
tolerance_setting = extruder.getProperty("slicing_tolerance", "value")
|
tolerance_setting = extruder.getProperty("slicing_tolerance", "value")
|
||||||
if tolerance_setting == "middle":
|
if tolerance_setting == "middle":
|
||||||
init_layer_height /= 2.0
|
init_layer_height /= 2.0
|
||||||
min_height = max(min_height, init_layer_height / 2.0)
|
min_height = max(min_height, init_layer_height)
|
||||||
return min_height
|
return min_height
|
||||||
|
|
||||||
def _checkSetup(self):
|
def _checkSetup(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user