mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-18 03:55:55 +08: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
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user