Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
For the `skirt_brim_extruder_nr` setting it is possible for the setting to be -1; this means that we have no preference for extruder. This allowed us to implement the "multi-material brim". When we were requesting the initial extruder, and this value was set to -1 we were default to the 0-th extruder. However, this was incorrect in the situation where the first extruder is not used. Fixes #17501
- Loading branch information
8af3de2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This commit fixes the situation where the first extruder is not used at all, previously the initial extruder would always default to 0 but with the fix it will correctly determine the initial extruder to be 1. I don't think the fix is perfect though, it is hard to determine in the front end what the initial extruder is. I think the logic will fail in the situation where the first extruder is used, but not on the first layer. In this case we will start printing with extruder 1 but since the 0-th extruder is in in the
used_extruders
list extruder 1 is determined to be the first extruder.8af3de2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Completely agree. Whatever the front-end does, it is impossible to be 100% sure of what the engine will actually do. So there are probably other situations where the initial extruder will not be correct. However, this commit really makes sense and fixes a case where we can actually be (quite) sure.