From 21c475344306726cc365022f9f3bf355578226e0 Mon Sep 17 00:00:00 2001 From: Jack Ha Date: Tue, 20 Feb 2018 09:54:22 +0100 Subject: [PATCH] CURA-4606 fallback value for layer height must come from definition --- cura/Machines/Models/QualityProfilesModel.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/cura/Machines/Models/QualityProfilesModel.py b/cura/Machines/Models/QualityProfilesModel.py index b30daa85f6..88a999b6ad 100644 --- a/cura/Machines/Models/QualityProfilesModel.py +++ b/cura/Machines/Models/QualityProfilesModel.py @@ -90,9 +90,7 @@ class QualityProfilesModel(ListModel): layer_height = str(container.getProperty("layer_height", "value")) else: # Look for layer_height in the GlobalStack from material -> definition - for idx in range(4): - container = active_global_stack.getContainer(idx) - if container.hasProperty("layer_height", "value"): - layer_height = container.getProperty("layer_height", "value") - break + container = active_global_stack.definition + if container.hasProperty("layer_height", "value"): + layer_height = container.getProperty("layer_height", "value") return str(layer_height)