Make the available machines a list and do not assume we have an active machine everywhere in the code

This commit is contained in:
Arjen Hiemstra 2015-02-13 18:04:32 +01:00
parent 201ea272b0
commit 227d9600dc
2 changed files with 16 additions and 3 deletions

View file

@ -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()