mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Catch errors when objects no longer exist in backend processing jobs
This commit is contained in:
parent
e5ee19037e
commit
b614b47ed2
2 changed files with 11 additions and 2 deletions
|
@ -19,7 +19,11 @@ class ProcessGCodeJob(Job):
|
|||
objectIdMap[id(node)] = node
|
||||
|
||||
if self._message.id in objectIdMap:
|
||||
try:
|
||||
node = objectIdMap[self._message.id]
|
||||
except KeyError:
|
||||
return
|
||||
|
||||
with open(self._message.filename) as f:
|
||||
data = f.read(None)
|
||||
setattr(node.getMeshData(), 'gcode', data)
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue