This caused issues with the head/gantry size when printing one object
at a time. The obj variable would never be None at the end of the function
which means it wasn't updating all objects with the gantry size, only the
last object iterated on, which caused the objects to think there are no
collisions between them when printing order was being decided.
This should hopefully fix issue #104
#print mode was changed by user. We need to reset that value to test with current scene content
self._lastResultOneAtATime = True
- for obj in self._objectList:
- if obj.getSize()[2] - objectSink > self._gantryHeight:
+ for objIter in self._objectList:
+ if objIter.getSize()[2] - objectSink > self._gantryHeight:
self._oneAtATime = False
if self._lastResultOneAtATime:
if self._sceneView: