mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-05 04:54:04 -06:00
getAvailableMaterialsForMachineExtruder can never return None
So no need to check for it. Contributes to issue CURA-6600.
This commit is contained in:
parent
5abb03e269
commit
46b489c3f9
2 changed files with 2 additions and 7 deletions
|
@ -103,7 +103,7 @@ class MaterialManager(QObject):
|
|||
# A convenience function to get available materials for the given machine with the extruder position.
|
||||
#
|
||||
def getAvailableMaterialsForMachineExtruder(self, machine: "GlobalStack",
|
||||
extruder_stack: "ExtruderStack") -> Optional[Dict[str, MaterialNode]]:
|
||||
extruder_stack: "ExtruderStack") -> Dict[str, MaterialNode]:
|
||||
nozzle_name = None
|
||||
if extruder_stack.variant.getId() != "empty_variant":
|
||||
nozzle_name = extruder_stack.variant.getName()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue