mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Use descriptive variable name
instead of magic number CURA-7951
This commit is contained in:
parent
11ea4639c9
commit
cfc4db00a5
1 changed files with 3 additions and 2 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue