mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 04:39:06 +08: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
@ -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…
x
Reference in New Issue
Block a user