mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Fix materials models
This commit is contained in:
parent
97059daf6a
commit
844a597e08
2 changed files with 9 additions and 1 deletions
|
@ -25,7 +25,11 @@ class GenericMaterialsModel(BaseMaterialsModel):
|
|||
if global_stack is None:
|
||||
self.setItems([])
|
||||
return
|
||||
extruder_stack = global_stack.extruders[str(self._extruder_position)]
|
||||
extruder_position = str(self._extruder_position)
|
||||
if extruder_position not in global_stack.extruders:
|
||||
self.setItems([])
|
||||
return
|
||||
extruder_stack = global_stack.extruders[extruder_position]
|
||||
|
||||
available_material_dict = self._material_manager.getAvailableMaterialsForMachineExtruder(global_stack,
|
||||
extruder_stack)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue