mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 19:28:07 -06:00
Get diameter from material container
CURA-6821
This commit is contained in:
parent
aaca4bb9a1
commit
ad7b58e460
2 changed files with 3 additions and 8 deletions
|
@ -1354,7 +1354,8 @@ class MachineManager(QObject):
|
|||
old_approximate_material_diameter = None # type: Optional[float]
|
||||
if candidate_materials:
|
||||
candidate_material = list(candidate_materials.values())[0]
|
||||
old_approximate_material_diameter = int(round(float(candidate_material.diameter)))
|
||||
default_material_diameter = "2.85"
|
||||
old_approximate_material_diameter = int(round(float(candidate_material.container.getMetaDataEntry("properties/diameter", default_material_diameter))))
|
||||
new_approximate_material_diameter = int(self._global_container_stack.extruderList[int(position_item)].getApproximateMaterialDiameter())
|
||||
|
||||
# Only switch to the old candidate material if the approximate material diameter of the extruder stays the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue