diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 02c5c04203..ab7c093b1d 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -1041,7 +1041,7 @@ class CuraApplication(QtApplication): nodes = [] for node in DepthFirstIterator(self.getController().getScene().getRoot()): - if type(node) not in {SceneNode, CuraSceneNode}: + if not isinstance(node, SceneNode): 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.