From 5358b700caf07c281886fb7747688386d6b1fd0d Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 18 Dec 2015 09:52:50 +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 c357c72bcd..9a37d126c0 100644 --- a/plugins/LegacyProfileReader/DictionaryOfDoom.json +++ b/plugins/LegacyProfileReader/DictionaryOfDoom.json @@ -38,7 +38,7 @@ "cool_min_layer_time": "cool_min_layer_time", "cool_min_speed": "cool_min_feedrate", "cool_lift_head": "cool_head_lift", - "support_enable": "support == \"None\" ? False : True", + "support_enable": "False if (support == \"None\") else True", "support_type": "support == \"Touching buildplate\" ? \"buildplate\" : \"everywhere\"", "support_angle": "support_angle", "support_xy_distance": "support_xy_distance",