mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
CURA-4400 get setting type from definition instead of whole stack improves speed of this call by a factor of 10
This commit is contained in:
parent
ac9bd954df
commit
7ebd83f815
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ class StartSliceJob(Job):
|
|||
default_extruder_position = int(Application.getInstance().getMachineManager().defaultExtruderPosition)
|
||||
result = {}
|
||||
for key in stack.getAllKeys():
|
||||
setting_type = stack.getProperty(key, "type")
|
||||
setting_type = stack.definition.getProperty(key, "type")
|
||||
value = stack.getProperty(key, "value")
|
||||
if setting_type == "extruder" and value == -1:
|
||||
# replace with the default value
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue