Always provide extruder_nr for all models

Even if you only have one extruder in your printer. This is more consistent, and probably also faster because executing one set-addition in Python is probably still slower than sending those 20 extra bytes over the socket and parsing them in C++...

Contributes to issue CURA-4410.
This commit is contained in:
Ghostkeeper 2018-09-27 11:20:24 +02:00
parent b52c28321a
commit 1717281d2b
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -440,8 +440,7 @@ class StartSliceJob(Job):
Job.yieldThread()
# Ensure that the engine is aware what the build extruder is.
if stack.getProperty("machine_extruder_count", "value") > 1:
changed_setting_keys.add("extruder_nr")
changed_setting_keys.add("extruder_nr")
# Get values for all changed settings
for key in changed_setting_keys: