mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 14:39:02 +08:00
Don't explode all nested groups when ungrouping groups of groups
This commit is contained in:
parent
7bf8e399ff
commit
af637d5acc
@ -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))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user