mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Don't explode all nested groups when ungrouping groups of groups
This commit is contained in:
parent
7bf8e399ff
commit
af637d5acc
1 changed files with 4 additions and 0 deletions
|
|
@ -1401,6 +1401,10 @@ class CuraApplication(QtApplication):
|
||||||
group_parent = node.getParent()
|
group_parent = node.getParent()
|
||||||
children = node.getChildren().copy()
|
children = node.getChildren().copy()
|
||||||
for child in children:
|
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
|
# Set the parent of the children to the parent of the group-node
|
||||||
op.addOperation(SetParentOperation(child, group_parent))
|
op.addOperation(SetParentOperation(child, group_parent))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue