Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArjen Hiemstra <ahiemstra@heimr.nl>2015-09-03 17:08:41 +0300
committerArjen Hiemstra <ahiemstra@heimr.nl>2015-09-03 17:08:41 +0300
commit57632f895e15000b1b8c862b1c09f8a5dddc8583 (patch)
treec29f735058b1616d498aa8014e799f072e2008dc /cura/OneAtATimeIterator.py
parenta83937183256bde5f68562369d6120dc512846f1 (diff)
Fix one at a time iterator to not check things like the platform
Diffstat (limited to 'cura/OneAtATimeIterator.py')
-rw-r--r--cura/OneAtATimeIterator.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/cura/OneAtATimeIterator.py b/cura/OneAtATimeIterator.py
index cf767a65ff..0be14e8703 100644
--- a/cura/OneAtATimeIterator.py
+++ b/cura/OneAtATimeIterator.py
@@ -2,6 +2,7 @@
# Cura is released under the terms of the AGPLv3 or higher.
from UM.Scene.Iterator import Iterator
+from UM.Scene.SceneNode import SceneNode
from functools import cmp_to_key
from UM.Application import Application
@@ -10,13 +11,16 @@ from UM.Application import Application
# Take note that the list of nodes can have children (that may or may not contain mesh data)
class OneAtATimeIterator(Iterator.Iterator):
def __init__(self, scene_node):
- super(OneAtATimeIterator, self).__init__(scene_node) # Call super to make multiple inheritence work.
+ super().__init__(scene_node) # Call super to make multiple inheritence work.
self._hit_map = [[]]
self._original_node_list = []
def _fillStack(self):
node_list = []
for node in self._scene_node.getChildren():
+ if not type(node) is SceneNode:
+ continue
+
if node.getBoundingBox().height > Application.getInstance().getMachineManager().getActiveProfile().getSettingValue("gantry_height"):
return
if node.callDecoration("getConvexHull"):