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:
Arjen Hiemstra 2015-04-28 11:30:52 +02:00
parent 23e5bcc55b
commit 9dbff5a109
2 changed files with 27 additions and 13 deletions

View file

@ -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)