CURA-4525 fix accidently remove all scenenodes when deleteAll

This commit is contained in:
Jack Ha 2017-11-13 16:51:07 +01:00
parent 8e5e555344
commit 97f61366a8
2 changed files with 3 additions and 3 deletions

View file

@ -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.