mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-06-04 11:14:21 +08:00
Delting now correctly deletes the group
This commit is contained in:
parent
cc2f0fc009
commit
1d4dbcc990
@ -251,9 +251,16 @@ class CuraApplication(QtApplication):
|
||||
|
||||
if not object and object_id != 0: #Workaround for tool handles overlapping the selected object
|
||||
object = Selection.getSelectedObject(0)
|
||||
|
||||
|
||||
if object:
|
||||
op = RemoveSceneNodeOperation(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…
x
Reference in New Issue
Block a user