mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 22:19:02 +08: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
@ -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…
x
Reference in New Issue
Block a user