mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-08 07:27:29 -06:00
clean
This commit is contained in:
parent
2d8fca8ac4
commit
5bb09d73fc
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue