mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Delting now correctly deletes the group
This commit is contained in:
parent
cc2f0fc009
commit
1d4dbcc990
1 changed files with 9 additions and 2 deletions
|
@ -253,7 +253,14 @@ class CuraApplication(QtApplication):
|
|||
object = Selection.getSelectedObject(0)
|
||||
|
||||
if object:
|
||||
if object.getParent():
|
||||
group_node = object.getParent()
|
||||
if not group_node.callDecoration("isGroup"):
|
||||
op = RemoveSceneNodeOperation(object)
|
||||
else:
|
||||
while group_node.getParent().callDecoration("isGroup"):
|
||||
group_node = group_node.getParent()
|
||||
op = RemoveSceneNodeOperation(group_node)
|
||||
op.push()
|
||||
self.setPlatformActivity(False)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue