mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-18 20:28:01 -06:00
Add extra short-circuit for resolve
This commit is contained in:
parent
9a0264644b
commit
4c00a8ff2c
1 changed files with 4 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue