From d35d6b087a62e419f67e9fe70d3048f51b99b141 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Tue, 27 Oct 2020 13:44:33 +0100 Subject: [PATCH] Reset the entire transformation when merging This fixes the issue when the packing algorithm rotated an object CURA-7796 --- cura/CuraApplication.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 08cc644025..24acf08d74 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -1522,13 +1522,10 @@ class CuraApplication(QtApplication): # Move each node to the same position. for mesh, node in zip(meshes, group_node.getChildren()): - transformation = node.getLocalTransformation() - transformation.setTranslation(zero_translation) - transformed_mesh = mesh.getTransformed(transformation) - + node.setTransformation(Matrix()) # Align the object around its zero position # and also apply the offset to center it inside the group. - node.setPosition(-transformed_mesh.getZeroPosition() - offset) + node.setPosition(-mesh.getZeroPosition() - offset) # Use the previously found center of the group bounding box as the new location of the group group_node.setPosition(group_node.getBoundingBox().center)