mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 23:46:22 -06:00
Make the available machines a list and do not assume we have an active machine everywhere in the code
This commit is contained in:
parent
201ea272b0
commit
227d9600dc
2 changed files with 16 additions and 3 deletions
|
@ -22,7 +22,7 @@ class ProcessSlicedObjectListJob(Job):
|
|||
if type(node) is SceneNode and node.getMeshData():
|
||||
objectIdMap[id(node)] = node
|
||||
|
||||
layerHeight = Application.getInstance().getMachineSettings().getSettingValueByKey('layer_height')
|
||||
layerHeight = Application.getInstance().getActiveMachine().getSettingValueByKey('layer_height')
|
||||
|
||||
for object in self._message.objects:
|
||||
mesh = objectIdMap[object.id].getMeshData()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue