mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 05:55:53 +08:00
Use getWorldPosition
for TranslateOperation
CURA-11279
This commit is contained in:
parent
9a108dc720
commit
0353037b31
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user