mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 07:09:02 +08:00
Use descriptive variable name
instead of magic number CURA-7951
This commit is contained in:
parent
11ea4639c9
commit
cfc4db00a5
@ -35,8 +35,9 @@ class GridArrange(Arranger):
|
||||
self._grid_height += self._margin_y
|
||||
|
||||
# Round up the grid size to the nearest cm
|
||||
self._grid_width = math.ceil(self._grid_width / 10) * 10
|
||||
self._grid_height = math.ceil(self._grid_height / 10) * 10
|
||||
grid_precision = 10 # 1cm
|
||||
self._grid_width = math.ceil(self._grid_width / grid_precision) * grid_precision
|
||||
self._grid_height = math.ceil(self._grid_height / grid_precision) * grid_precision
|
||||
|
||||
self._offset_x = 0
|
||||
self._offset_y = 0
|
||||
|
Loading…
x
Reference in New Issue
Block a user