From 45aef7903b88808afe9f35df7686ee5c6e9fe737 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Mon, 24 Aug 2015 13:26:34 +0200 Subject: [PATCH] Duplicate object now also copies rotation. Fixes Ultimaker/Cura#281 --- cura/CuraApplication.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 1584eaa9ab..da9d0a3543 100644 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -264,8 +264,10 @@ class CuraApplication(QtApplication): for i in range(count): new_node = SceneNode() new_node.setMeshData(node.getMeshData()) - new_node.setScale(node.getScale()) + new_node.translate(Vector((i + 1) * node.getBoundingBox().width, 0, 0)) + new_node.setOrientation(node.getOrientation()) + new_node.setScale(node.getScale()) new_node.setSelectable(True) op.addOperation(AddSceneNodeOperation(new_node, node.getParent())) op.push()