mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 13:34:01 -06:00
Be robust against some objects not having an extruder assigned
This could happen for instance when a plug-in adds a model. Fixes Sentry issue CURA-GR.
This commit is contained in:
parent
d5166030d7
commit
953630ad0b
1 changed files with 3 additions and 1 deletions
|
@ -274,7 +274,9 @@ class BuildVolume(SceneNode):
|
|||
if not self._global_container_stack.extruderList[int(extruder_position)].isEnabled:
|
||||
node.setOutsideBuildArea(True)
|
||||
continue
|
||||
except IndexError:
|
||||
except IndexError: # Happens when the extruder list is too short. We're not done building the printer in memory yet.
|
||||
continue
|
||||
except TypeError: # Happens when extruder_position is None. This object has no extruder decoration.
|
||||
continue
|
||||
|
||||
node.setOutsideBuildArea(False)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue