mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 19:26:04 +08:00
clean
This commit is contained in:
parent
2d8fca8ac4
commit
5bb09d73fc
@ -327,6 +327,7 @@ class StartSliceJob(Job):
|
|||||||
# Check all settings for relations, so we can also calculate the correct values for dependent settings.
|
# Check all settings for relations, so we can also calculate the correct values for dependent settings.
|
||||||
top_of_stack = stack.getTop() # Cache for efficiency.
|
top_of_stack = stack.getTop() # Cache for efficiency.
|
||||||
changed_setting_keys = set(top_of_stack.getAllKeys())
|
changed_setting_keys = set(top_of_stack.getAllKeys())
|
||||||
|
|
||||||
for key in top_of_stack.getAllKeys():
|
for key in top_of_stack.getAllKeys():
|
||||||
instance = top_of_stack.getInstance(key)
|
instance = top_of_stack.getInstance(key)
|
||||||
self._addRelations(changed_setting_keys, instance.definition.relations)
|
self._addRelations(changed_setting_keys, instance.definition.relations)
|
||||||
@ -349,6 +350,7 @@ class StartSliceJob(Job):
|
|||||||
limited_stack = stack
|
limited_stack = stack
|
||||||
|
|
||||||
setting.value = str(limited_stack.getProperty(key, "value")).encode("utf-8")
|
setting.value = str(limited_stack.getProperty(key, "value")).encode("utf-8")
|
||||||
|
|
||||||
Job.yieldThread()
|
Job.yieldThread()
|
||||||
|
|
||||||
## Recursive function to put all settings that require eachother for value changes in a list
|
## Recursive function to put all settings that require eachother for value changes in a list
|
||||||
|
Loading…
x
Reference in New Issue
Block a user