From e6c68bcdc95aa13dca37697fb37865bf28792668 Mon Sep 17 00:00:00 2001 From: Ghostkeeper Date: Tue, 25 Oct 2016 11:28:15 +0200 Subject: [PATCH] Add fallback if no unit is known for layer_height If there is no unit known, it is interpreted as there being no unit. There is currently mm, but if we changed that it is probably on purpose so we write no unit. Contributes to issue CURA-2723. --- cura/Settings/ProfilesModel.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/cura/Settings/ProfilesModel.py b/cura/Settings/ProfilesModel.py index 7d39d1c220..2ad9813e37 100644 --- a/cura/Settings/ProfilesModel.py +++ b/cura/Settings/ProfilesModel.py @@ -56,6 +56,8 @@ class ProfilesModel(InstanceContainersModel): machine_manager = Application.getInstance().getMachineManager() unit = global_container_stack.getBottom().getProperty("layer_height", "unit") + if not unit: + unit = "" for item in super()._recomputeItems(): profile = container_registry.findContainers(id = item["id"])