mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 04:36:01 +08:00
Add extra short-circuit for resolve
This commit is contained in:
parent
9a0264644b
commit
4c00a8ff2c
@ -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…
x
Reference in New Issue
Block a user