mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-14 10:17:52 -06:00
Use getApproximateMaterialDiameter rather than getCompatibleMaterialDiameter
Should we deprecate getCompatibleMaterialDiameter? I don't think the un-rounded diameter should ever be used for compatibility checks. Contributes to issue CURA-6600.
This commit is contained in:
parent
80e79f6e7e
commit
963f5e6dd7
1 changed files with 1 additions and 2 deletions
|
@ -1300,8 +1300,7 @@ class MachineManager(QObject):
|
|||
self._setMaterial(position_item, new_material)
|
||||
else:
|
||||
# The current material is not available, find the preferred one.
|
||||
material_diameter = self._global_container_stack.extruders[position].getCompatibleMaterialDiameter()
|
||||
approximate_material_diameter = round(material_diameter)
|
||||
approximate_material_diameter = int(self._global_container_stack.extruderList[int(position)].getApproximateMaterialDiameter())
|
||||
material_node = nozzle_node.preferredMaterial(approximate_material_diameter)
|
||||
self._setMaterial(position_item, material_node)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue