mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-19 04:37:51 -06:00
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:
parent
f1d2d7ed36
commit
ab572e9de2
1 changed files with 1 additions and 1 deletions
|
@ -108,6 +108,6 @@ class QualityProfilesDropDownMenuModel(ListModel):
|
||||||
layer_height = container.getProperty("layer_height", "value")
|
layer_height = container.getProperty("layer_height", "value")
|
||||||
|
|
||||||
if isinstance(layer_height, SettingFunction):
|
if isinstance(layer_height, SettingFunction):
|
||||||
layer_height = layer_height()
|
layer_height = layer_height(global_stack)
|
||||||
|
|
||||||
return float(layer_height)
|
return float(layer_height)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue