mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-07 05:53:59 -06:00
CURA-4606 CURA-5012 corrected and moved approximateMaterialDiameter to ExtruderStack
This commit is contained in:
parent
d79206301d
commit
df46241225
5 changed files with 32 additions and 17 deletions
|
@ -30,7 +30,7 @@ def getAvailableMaterials(extruder_position: Optional[int] = None):
|
|||
variant_name = None
|
||||
if extruder_stack.variant.getId() != "empty_variant":
|
||||
variant_name = extruder_stack.variant.getName()
|
||||
diameter = extruder_stack.getProperty("material_diameter", "value")
|
||||
diameter = extruder_stack.approximateMaterialDiameter
|
||||
|
||||
# Fetch the available materials (ContainerNode) for the current active machine and extruder setup.
|
||||
result_dict = material_manager.getAvailableMaterials(machine_definition_id, variant_name, diameter)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue