diff options
author | Lipu Fei <lipu.fei815@gmail.com> | 2018-01-09 15:58:04 +0300 |
---|---|---|
committer | Lipu Fei <lipu.fei815@gmail.com> | 2018-01-09 15:58:17 +0300 |
commit | 33f0e8cb6559cd17721883473f112a507ae1a136 (patch) | |
tree | 2cf56c3089ab7eb0c4cd591c7df1a16532fe8ceb | |
parent | 8f26784377a62010427c834eee117b9427c3e07c (diff) |
Use isinstance() to check if a node is a SceneNode
CURA-4780
-rw-r--r-- | cura/OneAtATimeIterator.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cura/OneAtATimeIterator.py b/cura/OneAtATimeIterator.py index 755680e62f..5653c8f1fb 100644 --- a/cura/OneAtATimeIterator.py +++ b/cura/OneAtATimeIterator.py @@ -18,7 +18,7 @@ class OneAtATimeIterator(Iterator.Iterator): def _fillStack(self): node_list = [] for node in self._scene_node.getChildren(): - if not issubclass(type(node), SceneNode): + if not isinstance(node, SceneNode): continue if node.callDecoration("getConvexHull"): |