mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 04:54:04 -06:00
Only remove selectable nodes in deleteAll()
CURA-4795 Otherwise, after loading a project file, all nodes including the machine will be removed and you don't see the machine any more.
This commit is contained in:
parent
b60903afc2
commit
dc596d0e1e
1 changed files with 2 additions and 0 deletions
|
@ -1045,6 +1045,8 @@ class CuraApplication(QtApplication):
|
|||
continue
|
||||
if (not node.getMeshData() and not node.callDecoration("getLayerData")) and not node.callDecoration("isGroup"):
|
||||
continue # Node that doesnt have a mesh and is not a group.
|
||||
if not node.isSelectable():
|
||||
continue # Only remove nodes that are selectable.
|
||||
if node.getParent() and node.getParent().callDecoration("isGroup"):
|
||||
continue # Grouped nodes don't need resetting as their parent (the group) is resetted)
|
||||
nodes.append(node)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue