mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Merge branch 'main' into CURA-10831
This commit is contained in:
commit
065f22ba07
1 changed files with 2 additions and 8 deletions
|
@ -241,14 +241,8 @@ class GridArrange(Arranger):
|
||||||
center_grid_x = coord_grid_x + (0.5 * self._grid_width)
|
center_grid_x = coord_grid_x + (0.5 * self._grid_width)
|
||||||
center_grid_y = coord_grid_y + (0.5 * self._grid_height)
|
center_grid_y = coord_grid_y + (0.5 * self._grid_height)
|
||||||
|
|
||||||
bounding_box = node.getBoundingBox()
|
return TranslateOperation(node, Vector(center_grid_x, node.getWorldPosition().y, center_grid_y),
|
||||||
center_node_x = (bounding_box.left + bounding_box.right) * 0.5
|
set_position=True)
|
||||||
center_node_y = (bounding_box.back + bounding_box.front) * 0.5
|
|
||||||
|
|
||||||
delta_x = center_grid_x - center_node_x
|
|
||||||
delta_y = center_grid_y - center_node_y
|
|
||||||
|
|
||||||
return TranslateOperation(node, Vector(delta_x, 0, delta_y))
|
|
||||||
|
|
||||||
def _getGridCornerPoints(
|
def _getGridCornerPoints(
|
||||||
self,
|
self,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue