mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Ungroupning with nested groups now works correctly
This commit is contained in:
parent
49cb12bda1
commit
cc2f0fc009
1 changed files with 3 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue