From 3195684892b4b9d2748309cffafe5526180eaa55 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Wed, 13 Jan 2016 15:55:09 +0100 Subject: [PATCH] Parse speed settings as string In the evaluation that's passed from the Dictionary of Doom, the settings are still strings so you can only parse the settings as string... Contributes to issue CURA-37. --- plugins/LegacyProfileReader/DictionaryOfDoom.json | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/LegacyProfileReader/DictionaryOfDoom.json b/plugins/LegacyProfileReader/DictionaryOfDoom.json index d246efabe3..a340fdbea2 100644 --- a/plugins/LegacyProfileReader/DictionaryOfDoom.json +++ b/plugins/LegacyProfileReader/DictionaryOfDoom.json @@ -24,11 +24,11 @@ "retraction_min_travel": "retraction_min_travel", "retraction_hop": "retraction_hop", "speed_print": "print_speed", - "speed_infill": "infill_speed if (infill_speed != 0) else print_speed", - "speed_wall_0": "inset0_speed if (inset0_speed != 0) else print_speed", - "speed_wall_x": "insetx_speed if (insetx_speed != 0) else print_speed", - "speed_topbottom": "solidarea_speed if (solidarea_speed != 0) else print_speed", - "speed_travel": "travel_speed if (travel_speed != 0) else travel_speed", + "speed_infill": "infill_speed if (infill_speed != \"0\") else print_speed", + "speed_wall_0": "inset0_speed if (inset0_speed != \"0\") else print_speed", + "speed_wall_x": "insetx_speed if (insetx_speed != \"0\") else print_speed", + "speed_topbottom": "solidarea_speed if (solidarea_speed != \"0\") else print_speed", + "speed_travel": "travel_speed if (travel_speed != \"0\") else travel_speed", "speed_layer_0": "bottom_layer_speed", "retraction_combing": "True if (retraction_combing == \"All\" or retraction_combing == \"No Skin\") else False", "cool_fan_enabled": "fan_enabled",