mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 08:55:54 +08:00
Added more yield thread to prevent GIL lockdown
This commit is contained in:
parent
2d22b79d7a
commit
f66a264901
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user