mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-09-27 10:51:22 +00:00
Fix sidebar filament count for multi-extruder printers (#13706)
load_selections() and update_selections() size the parallel project_config arrays (filament_colour, filament_colour_type, filament_map) off filament_presets.size(). When the saved list is shorter than the printer's nozzle count — never-used printer, hand-trimmed conf, or fewer filament_NN entries than nozzles — the loaded colors get truncated and the sidebar starts up one combo short.
This commit is contained in:
@@ -372,6 +372,12 @@ public:
|
||||
int get_printer_extruder_count() const;
|
||||
bool support_different_extruders();
|
||||
|
||||
// Orca: Ensure filament_presets has at least one slot per nozzle on FFF printers.
|
||||
// Called from (load|update)_selections before the parallel project_config arrays
|
||||
// (filament_colour/colour_type/map) are sized off filament_presets.size(), so a
|
||||
// short saved filament list doesn't truncate the loaded colors.
|
||||
void update_filament_count();
|
||||
|
||||
// Load user configuration and store it into the user profiles.
|
||||
// This method is called by the configuration wizard.
|
||||
void load_config_from_wizard(const std::string &name, DynamicPrintConfig config, Semver file_version)
|
||||
|
||||
Reference in New Issue
Block a user