mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 01:49:03 +08:00
Prevent exceptions about using a variable before assigning it
This commit is contained in:
parent
b9fb9385c2
commit
8e085fa92d
@ -54,13 +54,13 @@ class ProcessSlicedObjectListJob(Job):
|
||||
self._progress.setProgress(2)
|
||||
|
||||
mesh = MeshData()
|
||||
layerData = LayerData.LayerData()
|
||||
for object in self._message.objects:
|
||||
try:
|
||||
node = objectIdMap[object.id]
|
||||
except KeyError:
|
||||
continue
|
||||
|
||||
layerData = LayerData.LayerData()
|
||||
for layer in object.layers:
|
||||
layerData.addLayer(layer.id)
|
||||
layerData.setLayerHeight(layer.id, layer.height)
|
||||
|
Loading…
x
Reference in New Issue
Block a user