From ab572e9de24806963c9523bb4023011de3662a50 Mon Sep 17 00:00:00 2001 From: Lipu Fei Date: Mon, 3 Sep 2018 14:03:44 +0200 Subject: [PATCH] SettingFunction evaluation needs a stack to provide values Note that this is still not correct. When the value gets evaluated, we need to evaluate it with that container in the stack(s), but this case, the stack may have other containers, so the evaluation can give incorrect values because its context is simply not correct. This change only prevents it from breaking because it's missing a provider. --- cura/Machines/Models/QualityProfilesDropDownMenuModel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cura/Machines/Models/QualityProfilesDropDownMenuModel.py b/cura/Machines/Models/QualityProfilesDropDownMenuModel.py index dc2482ed45..a01cc1194f 100644 --- a/cura/Machines/Models/QualityProfilesDropDownMenuModel.py +++ b/cura/Machines/Models/QualityProfilesDropDownMenuModel.py @@ -108,6 +108,6 @@ class QualityProfilesDropDownMenuModel(ListModel): layer_height = container.getProperty("layer_height", "value") if isinstance(layer_height, SettingFunction): - layer_height = layer_height() + layer_height = layer_height(global_stack) return float(layer_height)