mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Prevent exceptions about using a variable before assigning it
This commit is contained in:
parent
b9fb9385c2
commit
8e085fa92d
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue