From 0353037b31cfd715bc01193ca676f871d2373515 Mon Sep 17 00:00:00 2001 From: "c.lamboo" Date: Wed, 6 Dec 2023 11:36:54 +0100 Subject: [PATCH] Use `getWorldPosition` for `TranslateOperation` CURA-11279 --- cura/Arranging/GridArrange.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cura/Arranging/GridArrange.py b/cura/Arranging/GridArrange.py index c30b5c897f..13778e9de9 100644 --- a/cura/Arranging/GridArrange.py +++ b/cura/Arranging/GridArrange.py @@ -241,10 +241,8 @@ class GridArrange(Arranger): center_grid_x = coord_grid_x + (0.5 * self._grid_width) center_grid_y = coord_grid_y + (0.5 * self._grid_height) - bounding_box = node.getBoundingBox() - center_node_z = bounding_box.height / 2 - - return TranslateOperation(node, Vector(center_grid_x, center_node_z, center_grid_y), set_position = True) + return TranslateOperation(node, Vector(center_grid_x, node.getWorldPosition().y, center_grid_y), + set_position=True) def _getGridCornerPoints( self,