Fix merging & grouping

I made a boo-boo while adding typing.
CURA-6058
This commit is contained in:
Jaime van Kessel 2018-12-31 13:43:47 +01:00
parent 37af42aa93
commit 4be228a4e2

View File

@ -1404,7 +1404,7 @@ class CuraApplication(QtApplication):
selected_nodes = Selection.getAllSelectedObjects().copy()
for node in selected_nodes:
parent = node.getParent()
if parent is not None and node in selected_nodes and not node.callDecoration("isGroup"):
if parent is not None and parent in selected_nodes and not parent.callDecoration("isGroup"):
Selection.remove(node)
# Move selected nodes into the group-node