mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 02:37:49 -06:00
Ensure the value of limit_to_extruder is an extruder before accessing it
Contributes to CURA-3738
This commit is contained in:
parent
d02d004986
commit
63e586ab5b
1 changed files with 1 additions and 1 deletions
|
@ -81,7 +81,7 @@ class GlobalStack(CuraContainerStack):
|
|||
|
||||
# Handle the "limit_to_extruder" property.
|
||||
limit_to_extruder = super().getProperty(key, "limit_to_extruder")
|
||||
if limit_to_extruder is not None and limit_to_extruder != "-1":
|
||||
if limit_to_extruder is not None and limit_to_extruder != "-1" and limit_to_extruder in self._extruders:
|
||||
if super().getProperty(key, "settable_per_extruder"):
|
||||
result = self._extruders[str(limit_to_extruder)].getProperty(key, property_name)
|
||||
if result is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue