Don't explode all nested groups when ungrouping groups of groups

This commit is contained in:
fieldOfView 2018-03-19 11:33:17 +01:00
parent 7bf8e399ff
commit af637d5acc

View file

@ -1401,6 +1401,10 @@ class CuraApplication(QtApplication):
group_parent = node.getParent()
children = node.getChildren().copy()
for child in children:
# Ungroup only 1 level deep
if child.getParent() != node:
continue
# Set the parent of the children to the parent of the group-node
op.addOperation(SetParentOperation(child, group_parent))