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.
This commit is contained in:
Ghostkeeper 2016-01-13 15:55:09 +01:00
parent ef3b5792b4
commit 3195684892

View file

@ -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",