From bfa332e227c414197d0ee085089ed56c9a5c8045 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 18 Dec 2015 09:54:35 +0100 Subject: [PATCH] Fix ternary operator in import of support_enable The ternary operator of Python is different. Contributes to issue CURA-37. --- plugins/LegacyProfileReader/DictionaryOfDoom.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/LegacyProfileReader/DictionaryOfDoom.json b/plugins/LegacyProfileReader/DictionaryOfDoom.json index 9a37d126c0..9be77093de 100644 --- a/plugins/LegacyProfileReader/DictionaryOfDoom.json +++ b/plugins/LegacyProfileReader/DictionaryOfDoom.json @@ -39,7 +39,7 @@ "cool_min_speed": "cool_min_feedrate", "cool_lift_head": "cool_head_lift", "support_enable": "False if (support == \"None\") else True", - "support_type": "support == \"Touching buildplate\" ? \"buildplate\" : \"everywhere\"", + "support_type": "\"buildplate\" if (support == \"Touching buildplate\") else \"everywhere\"", "support_angle": "support_angle", "support_xy_distance": "support_xy_distance", "support_z_distance": "support_z_distance",