From af637d5acc34ffff87cf0ef3f6e2a7c3cffe1821 Mon Sep 17 00:00:00 2001 From: fieldOfView Date: Mon, 19 Mar 2018 11:33:17 +0100 Subject: [PATCH] Don't explode all nested groups when ungrouping groups of groups --- cura/CuraApplication.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 6056745c75..2e641f145a 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -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))