mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 07:03:56 -06:00
Check if dict has key before accessing in BuildVolume
This commit is contained in:
parent
4b5cc59508
commit
1468ac1d59
1 changed files with 2 additions and 0 deletions
|
@ -242,6 +242,8 @@ class BuildVolume(SceneNode):
|
|||
|
||||
# Mark the node as outside build volume if the set extruder is disabled
|
||||
extruder_position = node.callDecoration("getActiveExtruderPosition")
|
||||
if extruder_position not in self._global_container_stack.extruders:
|
||||
continue
|
||||
if not self._global_container_stack.extruders[extruder_position].isEnabled:
|
||||
node.setOutsideBuildArea(True)
|
||||
continue
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue