mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 13:34:01 -06:00
CURA-4525 fix accidently remove all scenenodes when deleteAll
This commit is contained in:
parent
8e5e555344
commit
97f61366a8
2 changed files with 3 additions and 3 deletions
|
@ -1040,7 +1040,7 @@ class CuraApplication(QtApplication):
|
|||
|
||||
nodes = []
|
||||
for node in DepthFirstIterator(self.getController().getScene().getRoot()):
|
||||
if not issubclass(type(node), SceneNode):
|
||||
if type(node) not in {SceneNode, CuraSceneNode}:
|
||||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue