Deleting objects from groups no longer cause position changes

CURA-1891
This commit is contained in:
Jaime van Kessel 2016-07-20 14:44:44 +02:00
parent 0cf39b0ad4
commit f8a9fa1a66

View file

@ -583,6 +583,7 @@ class CuraApplication(QtApplication):
op.push()
if group_node:
if len(group_node.getChildren()) == 1 and group_node.callDecoration("isGroup"):
group_node.getChildren()[0].translate(group_node.getPosition())
group_node.getChildren()[0].setParent(group_node.getParent())
op = RemoveSceneNodeOperation(group_node)
op.push()