mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-24 23:23:57 -06:00
Correctly parse legacy speed settings with strange floats
If the legacy profile contains float values serialised to '0.0' or '0.00' instead of just '0', this now works correctly instead of evaluating the string comparison to false. Contributes to issue CURA-37.
This commit is contained in:
parent
9feb609fba
commit
e82988f5e4
1 changed files with 5 additions and 5 deletions
|
@ -23,11 +23,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 (float(infill_speed) != 0) else print_speed",
|
||||
"speed_wall_0": "inset0_speed if (float(inset0_speed) != 0) else print_speed",
|
||||
"speed_wall_x": "insetx_speed if (float(insetx_speed) != 0) else print_speed",
|
||||
"speed_topbottom": "solidarea_speed if (float(solidarea_speed) != 0) else print_speed",
|
||||
"speed_travel": "travel_speed if (float(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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue