mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
Added round to top/bottom layer calculation
This is because 1.12 / 0.04 = 28.000000000000004 according to python. The math.ceil then ensured that the result was 29 (instead of expected 28) CURA-1140
This commit is contained in:
parent
effcbe5842
commit
b7a465afd6
1 changed files with 2 additions and 2 deletions
|
@ -391,7 +391,7 @@
|
|||
"max_value_warning": "100",
|
||||
"type": "int",
|
||||
"visible": false,
|
||||
"inherit_function": "0 if infill_sparse_density == 100 else math.ceil(parent_value / layer_height)"
|
||||
"inherit_function": "0 if infill_sparse_density == 100 else math.ceil(round(parent_value / layer_height, 4))"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -411,7 +411,7 @@
|
|||
"default": 6,
|
||||
"type": "int",
|
||||
"visible": false,
|
||||
"inherit_function": "999999 if infill_sparse_density == 100 else math.ceil(parent_value / layer_height)"
|
||||
"inherit_function": "999999 if infill_sparse_density == 100 else math.ceil(round(parent_value / layer_height, 4))"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue