mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Added more yield thread to prevent GIL lockdown
This commit is contained in:
parent
2d22b79d7a
commit
f66a264901
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue