Fix _shouldResolve()

CURA-6456
This commit is contained in:
Lipu Fei 2019-04-11 16:32:56 +02:00
parent 55dcf31e3c
commit 32fcc79dd8

View file

@ -212,7 +212,7 @@ class GlobalStack(CuraContainerStack):
# Determine whether or not we should try to get the "resolve" property instead of the
# requested property.
def _shouldResolve(self, key: str, property_name: str, context: Optional[PropertyEvaluationContext] = None) -> bool:
if property_name is not "value":
if property_name != "value":
# Do not try to resolve anything but the "value" property
return False