CURA-4821 Select the groups to be deleted also when clearing the scene

This commit is contained in:
Diego Prado Gesto 2018-01-22 16:12:11 +01:00
parent 26d77778c1
commit d8ae78d80c

View file

@ -1055,7 +1055,7 @@ class CuraApplication(QtApplication):
continue # Node that doesnt have a mesh and is not a group. continue # Node that doesnt have a mesh and is not a group.
if only_selectable and not node.isSelectable(): if only_selectable and not node.isSelectable():
continue continue
if not node.callDecoration("isSliceable") and not node.callDecoration("getLayerData"): if not node.callDecoration("isSliceable") and not node.callDecoration("getLayerData") and not node.callDecoration("isGroup"):
continue # Only remove nodes that are selectable. continue # Only remove nodes that are selectable.
if node.getParent() and node.getParent().callDecoration("isGroup"): if node.getParent() and node.getParent().callDecoration("isGroup"):
continue # Grouped nodes don't need resetting as their parent (the group) is resetted) continue # Grouped nodes don't need resetting as their parent (the group) is resetted)