Add extra short-circuit for resolve

This commit is contained in:
Jaime van Kessel 2020-08-14 13:57:09 +02:00
parent 9a0264644b
commit 4c00a8ff2c
No known key found for this signature in database
GPG key ID: 3710727397403C91

View file

@ -263,6 +263,10 @@ class GlobalStack(CuraContainerStack):
# Do not try to resolve anything but the "value" property # Do not try to resolve anything but the "value" property
return False return False
if not self.definition.getProperty(key, "resolve"):
# If there isn't a resolve set for this setting, there isn't anything to do here.
return False
current_thread = threading.current_thread() current_thread = threading.current_thread()
if key in self._resolving_settings[current_thread.name]: if key in self._resolving_settings[current_thread.name]:
# To prevent infinite recursion, if getProperty is called with the same key as # To prevent infinite recursion, if getProperty is called with the same key as