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.
This commit is contained in:
Lipu Fei 2018-09-03 14:03:44 +02:00
parent f1d2d7ed36
commit ab572e9de2

View file

@ -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)