From cc2f0fc00903c40a334cb1bca2431d0675f9fdd0 Mon Sep 17 00:00:00 2001 From: Jaime van Kessel Date: Wed, 15 Jul 2015 17:22:33 +0200 Subject: [PATCH] Ungroupning with nested groups now works correctly --- cura/CuraApplication.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 5ecad545f7..55d54d5716 100644 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -437,11 +437,12 @@ class CuraApplication(QtApplication): @pyqtSlot() def ungroupSelected(self): ungrouped_nodes = [] - for node in Selection.getAllSelectedObjects(): + selected_objects = Selection.getAllSelectedObjects()[:] #clone the list + for node in selected_objects: if node.callDecoration("isGroup" ): children_to_move = [] for child in node.getChildren(): - if child.getMeshData() is not None: + if type(child) is SceneNode: children_to_move.append(child) for child in children_to_move: