From d2513f9bbb55212568b9e05aceef722810c6b1bf Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Fri, 18 Dec 2015 10:03:34 +0100 Subject: [PATCH] Fix prime_tower_size import It was using math.sqrt incorrectly and also was trying to divide strings by each other, while they were floats. 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 9be77093de..e222486750 100644 --- a/plugins/LegacyProfileReader/DictionaryOfDoom.json +++ b/plugins/LegacyProfileReader/DictionaryOfDoom.json @@ -69,7 +69,7 @@ "magic_mesh_surface_mode": "simple_mode", "magic_spiralize": "spiralize", "prime_tower_enable": "wipe_tower", - "prime_tower_size": "sqrt(wipe_tower_volume / layer_height)", + "prime_tower_size": "math.sqrt(float(wipe_tower_volume) / float(layer_height))", "ooze_shield_enabled": "ooze_shield" } } \ No newline at end of file