mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 02:49:04 +08: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
@ -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…
x
Reference in New Issue
Block a user