mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
Ensure that materials get filtered by diameter again
CURA-6600
This commit is contained in:
parent
d29b3078b3
commit
4ff8991196
1 changed files with 4 additions and 1 deletions
|
|
@ -109,7 +109,10 @@ class MaterialManager(QObject):
|
|||
nozzle_name = extruder_stack.variant.getName()
|
||||
|
||||
# Fetch the available materials (ContainerNode) for the current active machine and extruder setup.
|
||||
return self.getAvailableMaterials(machine.definition.getId(), nozzle_name)
|
||||
materials =self.getAvailableMaterials(machine.definition.getId(), nozzle_name)
|
||||
compatible_material_diameter = str(round(extruder_stack.getCompatibleMaterialDiameter()))
|
||||
|
||||
return {key: material for key, material in materials.items() if material.getMetaDataEntry("approximate_diameter") == compatible_material_diameter}
|
||||
|
||||
#
|
||||
# Gets MaterialNode for the given extruder and machine with the given material name.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue