Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLipu Fei <lipu.fei815@gmail.com>2018-09-14 10:43:24 +0300
committerLipu Fei <lipu.fei815@gmail.com>2018-09-18 11:35:44 +0300
commit725ea847a78415133cb07306a1c59e33606db209 (patch)
tree8b9df8dc900989ea81a034eb9d71c91b63aadb7e /resources
parent51d342678e3aab0fbc7313164aba366453de40fe (diff)
Add material_diameter into fdmprinter
When saving a material to a file, it will save all the settings in that container, which needs to create SettingInstances for all the cached ones, and for those instances, their definitions will be retrieved from the machine definition. material_diameter is one of the settings, but it only exists in the extruder definitions, so when it tries to save a material profile, a lot of warnings/errors will occur due to the missing "material_diameter" in fdmprinter. Adding it back fixes this problem.
Diffstat (limited to 'resources')
-rw-r--r--resources/definitions/fdmprinter.def.json14
1 files changed, 14 insertions, 0 deletions
diff --git a/resources/definitions/fdmprinter.def.json b/resources/definitions/fdmprinter.def.json
index 4c87a3bcf0..6833e921da 100644
--- a/resources/definitions/fdmprinter.def.json
+++ b/resources/definitions/fdmprinter.def.json
@@ -77,6 +77,20 @@
"type": "str",
"enabled": false
},
+ "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
+ },
"material_bed_temp_wait":
{
"label": "Wait for Build Plate Heatup",