mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 16:15:52 +08:00
Remove usage of deprecated function
This commit is contained in:
parent
e46febfea4
commit
11d176137f
@ -153,7 +153,7 @@ class StartSliceJob(Job):
|
|||||||
self.setResult(StartJobResult.MaterialIncompatible)
|
self.setResult(StartJobResult.MaterialIncompatible)
|
||||||
return
|
return
|
||||||
|
|
||||||
for position, extruder_stack in stack.extruders.items():
|
for extruder_stack in stack.extruderList:
|
||||||
material = extruder_stack.findContainer({"type": "material"})
|
material = extruder_stack.findContainer({"type": "material"})
|
||||||
if not extruder_stack.isEnabled:
|
if not extruder_stack.isEnabled:
|
||||||
continue
|
continue
|
||||||
@ -162,7 +162,6 @@ class StartSliceJob(Job):
|
|||||||
self.setResult(StartJobResult.MaterialIncompatible)
|
self.setResult(StartJobResult.MaterialIncompatible)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
||||||
# Don't slice if there is a per object setting with an error value.
|
# Don't slice if there is a per object setting with an error value.
|
||||||
for node in DepthFirstIterator(self._scene.getRoot()):
|
for node in DepthFirstIterator(self._scene.getRoot()):
|
||||||
if not isinstance(node, CuraSceneNode) or not node.isSelectable():
|
if not isinstance(node, CuraSceneNode) or not node.isSelectable():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user