Added more yield thread to prevent GIL lockdown

This commit is contained in:
Jaime van Kessel 2016-02-22 14:59:33 +01:00
parent 2d22b79d7a
commit f66a264901

View file

@ -106,7 +106,8 @@ class ProcessSlicedObjectListJob(Job):
points -= center
layer_data.addPolygon(layer.id, polygon.type, points, polygon.line_width)
Job.yieldThread()
Job.yieldThread()
current_layer += 1
progress = (current_layer / layer_count) * 100
# TODO: Rebuild the layer data mesh once the layer has been processed.