From a71bb633189ac084742c59baa6e70f6ab2656214 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Fri, 18 Nov 2016 12:50:51 +0100 Subject: [PATCH] Resetting transformation now works again for ungrouped nodes CURA-2925 --- cura/CuraApplication.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 0216bacce4..a445f127ef 100644 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -799,11 +799,9 @@ class CuraApplication(QtApplication): for node in nodes: # Ensure that the object is above the build platform node.removeDecorator(ZOffsetDecorator.ZOffsetDecorator) - center_y = 0 - if node.callDecoration("isGroup"): - center_y = node.getWorldPosition().y - node.getBoundingBox().bottom - else: - center_y = node.getMeshData().getCenterPosition().y + + center_y = node.getWorldPosition().y - node.getBoundingBox().bottom + op.addOperation(SetTransformOperation(node, Vector(0, center_y, 0), Quaternion(), Vector(1, 1, 1))) op.push()