mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 14:44:13 -06:00
Correct default material diameter value for single-extrusion machines
CURA-4812
This commit is contained in:
parent
f948203a63
commit
b0d2ef0f72
2 changed files with 4 additions and 22 deletions
|
@ -225,7 +225,10 @@ class MachineSettingsAction(MachineAction):
|
||||||
material_approximate_diameter = str(round(material_diameter))
|
material_approximate_diameter = str(round(material_diameter))
|
||||||
machine_diameter = extruder_stack.definitionChanges.getProperty("material_diameter", "value")
|
machine_diameter = extruder_stack.definitionChanges.getProperty("material_diameter", "value")
|
||||||
if not machine_diameter:
|
if not machine_diameter:
|
||||||
machine_diameter = extruder_stack.definition.getProperty("material_diameter", "value")
|
if extruder_stack.definition.hasProperty("material_diameter", "value"):
|
||||||
|
machine_diameter = extruder_stack.definition.getProperty("material_diameter", "value")
|
||||||
|
else:
|
||||||
|
machine_diameter = self._global_container_stack.definition.getProperty("material_diameter", "value")
|
||||||
machine_approximate_diameter = str(round(machine_diameter))
|
machine_approximate_diameter = str(round(machine_diameter))
|
||||||
|
|
||||||
if material_approximate_diameter != machine_approximate_diameter:
|
if material_approximate_diameter != machine_approximate_diameter:
|
||||||
|
|
|
@ -181,27 +181,6 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"material": {
|
|
||||||
"label": "Material",
|
|
||||||
"icon": "category_material",
|
|
||||||
"description": "Material",
|
|
||||||
"type": "category",
|
|
||||||
"children": {
|
|
||||||
"material_diameter": {
|
|
||||||
"label": "Diameter",
|
|
||||||
"description": "Adjusts the diameter of the filament used. Match this value with the diameter of the used filament.",
|
|
||||||
"unit": "mm",
|
|
||||||
"type": "float",
|
|
||||||
"default_value": 2.85,
|
|
||||||
"minimum_value": "0.0001",
|
|
||||||
"minimum_value_warning": "0.4",
|
|
||||||
"maximum_value_warning": "3.5",
|
|
||||||
"enabled": "machine_gcode_flavor != \"UltiGCode\"",
|
|
||||||
"settable_per_mesh": false,
|
|
||||||
"settable_per_extruder": true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"platform_adhesion":
|
"platform_adhesion":
|
||||||
{
|
{
|
||||||
"label": "Build Plate Adhesion",
|
"label": "Build Plate Adhesion",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue