From 5d7abb58642dd1e52cf9b0ca5be41db5595b7e5f Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Thu, 10 Sep 2015 15:17:42 +0200 Subject: [PATCH] Ungrouping now copies parent transformation onto children. Fixes Ultimaker/Cura#360 --- cura/CuraApplication.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 1d06c9db6c..811e879207 100644 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -468,6 +468,12 @@ class CuraApplication(QtApplication): for child in children_to_move: child.setParent(node.getParent()) + print(node.getPosition()) + child.translate(node.getPosition()) + child.setPosition(child.getPosition().scale(node.getScale())) + child.scale(node.getScale()) + child.rotate(node.getOrientation()) + Selection.add(child) child.callDecoration("setConvexHull",None) node.setParent(None)