Catch errors when objects no longer exist in backend processing jobs

This commit is contained in:
Arjen Hiemstra 2015-03-23 14:56:43 +01:00
parent e5ee19037e
commit b614b47ed2
2 changed files with 11 additions and 2 deletions

View file

@ -25,7 +25,12 @@ class ProcessSlicedObjectListJob(Job):
layerHeight = Application.getInstance().getActiveMachine().getSettingValueByKey('layer_height')
for object in self._message.objects:
mesh = objectIdMap[object.id].getMeshData()
try:
node = objectIdMap[object.id]
except KeyError:
continue
mesh = node.getMeshData()
layerData = LayerData.LayerData()
for layer in object.layers: