Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/slic3r/GUI/PartPlate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,8 @@ std::vector<int> PartPlate::get_extruders_under_cli(bool conside_custom_gcode, D
std::sort(plate_extruders.begin(), plate_extruders.end());
auto it_end = std::unique(plate_extruders.begin(), plate_extruders.end());
plate_extruders.resize(std::distance(plate_extruders.begin(), it_end));
expand_plate_extruders(plate_extruders);
// Do not call expand_plate_extruders() from the CLI path. It depends on
// wxGetApp().preset_bundle, which is GUI state and may be unavailable here.
std::ostringstream extruders_list;
for (size_t i = 0; i < plate_extruders.size(); ++i) {
if (i != 0)
Expand Down