mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-13 09:47:50 -06:00
Only build the layer data mesh after we have received all the polygons
Certain polygons might be added to a layer later, so to prevent issues when using range drawing, we need to wait until we have all layer data then process that in the right order.
This commit is contained in:
parent
23e5bcc55b
commit
9dbff5a109
2 changed files with 27 additions and 13 deletions
|
@ -54,6 +54,8 @@ class ProcessSlicedObjectListJob(Job):
|
|||
|
||||
layerData.addPolygon(layer.id, polygon.type, points)
|
||||
|
||||
# We are done processing all the layers we got from the engine, now create a mesh out of the data
|
||||
layerData.build()
|
||||
mesh.layerData = layerData
|
||||
|
||||
new_node.setMeshData(mesh)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue