Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaime van Kessel <nallath@gmail.com>2020-01-06 17:02:33 +0300
committerJaime van Kessel <nallath@gmail.com>2020-01-06 17:02:33 +0300
commit11d176137f0f5e1d55c86a067ca056b1e634d878 (patch)
treef8d66c94e886dd8b6d1316457840e88997e6362f /plugins/CuraEngineBackend
parente46febfea42eec7cdb9f744d1b58ccf9f6967daa (diff)
Remove usage of deprecated function
Diffstat (limited to 'plugins/CuraEngineBackend')
-rw-r--r--plugins/CuraEngineBackend/StartSliceJob.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/CuraEngineBackend/StartSliceJob.py b/plugins/CuraEngineBackend/StartSliceJob.py
index 43d54d8b12..d30a77177f 100644
--- a/plugins/CuraEngineBackend/StartSliceJob.py
+++ b/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():