From efc3869efe4d8cf10488cb385739ca51dc9583ce Mon Sep 17 00:00:00 2001 From: Mark Burton Date: Mon, 16 Jan 2017 16:09:48 +0000 Subject: [PATCH] Infill Line Directions setting can now contain an arbitrary string. The SettingTextField can now cope with strings of arbitrary characters (not just digits) so revert to plan A and let the user input a comma separated list of angles rather than having fixed combinations. CuraEngine will parse the list and ignore bad input. --- resources/definitions/fdmprinter.def.json | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/resources/definitions/fdmprinter.def.json b/resources/definitions/fdmprinter.def.json index dd863719f0..6dd30800be 100644 --- a/resources/definitions/fdmprinter.def.json +++ b/resources/definitions/fdmprinter.def.json @@ -1089,15 +1089,8 @@ "infill_angles": { "label": "Infill Line Directions", - "description": "The line directions to use when the infill pattern is lines or zig zag. Orthogonal directions are 45 and 135 degrees, Uniform directions are 45, 90, 135 and 180, Stronger X directions are 45, 90, 135 and 90 again and Stronger Y directions are 45, 0, 135 and 0 again.", - "type": "enum", - "options": - { - "45,135": "Orthogonal", - "45,90,135,180": "Uniform", - "45,90,135,90": "Stronger X", - "45,0,135,0": "Stronger Y" - }, + "description": "A comma separated list of line directions to use when the infill pattern is lines or zig zag. Elements from the list are used sequentially as the layers progress and when the end of the list is reached, it starts at the beginning again. Default directions are 45 and 135 degrees.", + "type": "str", "default_value": "45,135", "enabled": "infill_pattern == 'lines' or infill_pattern == 'zigzag'", "settable_per_mesh": true