Browse Source

Remove usage of deprecated function

Jaime van Kessel 5 years ago
parent
commit
11d176137f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      plugins/CuraEngineBackend/StartSliceJob.py

+ 1 - 2
plugins/CuraEngineBackend/StartSliceJob.py

@@ -153,7 +153,7 @@ class StartSliceJob(Job):
             self.setResult(StartJobResult.MaterialIncompatible)
             return
 
-        for position, extruder_stack in stack.extruders.items():
+        for extruder_stack in stack.extruderList:
             material = extruder_stack.findContainer({"type": "material"})
             if not extruder_stack.isEnabled:
                 continue
@@ -162,7 +162,6 @@ class StartSliceJob(Job):
                     self.setResult(StartJobResult.MaterialIncompatible)
                     return
 
-
         # Don't slice if there is a per object setting with an error value.
         for node in DepthFirstIterator(self._scene.getRoot()):
             if not isinstance(node, CuraSceneNode) or not node.isSelectable():