From c1eab9c3a3f7955f39a036f88c2f661298341f85 Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Fri, 16 Oct 2015 11:12:39 +0200 Subject: [PATCH] Fix inherit function for infill line distance For some reason using parent value here creates odd override bugs --- resources/machines/fdmprinter.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/machines/fdmprinter.json b/resources/machines/fdmprinter.json index a283e1fcfd..5f918bf047 100644 --- a/resources/machines/fdmprinter.json +++ b/resources/machines/fdmprinter.json @@ -256,7 +256,6 @@ "min_value_warning": "0.2", "max_value_warning": "5", "type": "float", - "inherit_function": "parent_value", "visible": false, "children": { "wall_line_count": { @@ -454,7 +453,7 @@ "type": "float", "default": 2, "visible": false, - "inherit_function": "0 if parent_value == 0 else (infill_line_width * 100) / parent_value" + "inherit_function": "0 if infill_sparse_density == 0 else (infill_line_width * 100) / infill_sparse_density" } } }, @@ -505,7 +504,7 @@ "type": "int", "default": 1, "visible": false, - "inherit_function": "math.floor((parent_value + 0.001) / layer_height)" + "inherit_function": "math.floor(( parent_value + 0.001) / layer_height)" } } },