mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-07 03:18:58 +08:00
Add minimum_value to z_offset_taper_layers.
It now constrains the value to be no less than 0 when z_offset_layer_0 is negative or z_offset_taper_layers is 0, otherwise the value must be such that the gap between subsequent layers is not less than 80% of the normal layer height. If the print head was lowered for the first layer, the tapering will always cause the subsequent layers to be at least the normal layer height above the previous layer so the tapering can occur over any number of layers. On the other hand, if the print head was raised for the first layer, we demand that either tapering is not used (value is 0) or that the tapering occurs over sufficient layers so that the inter-layer gaps are not too small.
This commit is contained in:
parent
5cbead5128
commit
2c13f5dc75
@ -4108,7 +4108,7 @@
|
|||||||
"description": "When non-zero, the Z offset is reduced to 0 over that many layers. A value of 0 means that the Z offset remains constant for all the layers in the print.",
|
"description": "When non-zero, the Z offset is reduced to 0 over that many layers. A value of 0 means that the Z offset remains constant for all the layers in the print.",
|
||||||
"type": "int",
|
"type": "int",
|
||||||
"default_value": 0,
|
"default_value": 0,
|
||||||
"minimum_value": "0",
|
"minimum_value": "0 if z_offset_layer_0 <= 0 or z_offset_taper_layers == 0 else max(1, round(5 * z_offset_layer_0 / layer_height + 0.5))",
|
||||||
"enabled": "resolveOrValue('adhesion_type') != 'raft' and z_offset_layer_0 != 0",
|
"enabled": "resolveOrValue('adhesion_type') != 'raft' and z_offset_layer_0 != 0",
|
||||||
"settable_per_mesh": false,
|
"settable_per_mesh": false,
|
||||||
"settable_per_extruder": false
|
"settable_per_extruder": false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user