mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 18:12:10 +00:00
ENH: CLI: fix an exception in CLI testing
when update filament configs, we need to use the old filament variant count jira: STUDIO-9201 Change-Id: Ibc0084997c264d8527dc9998018907c8af4b2043 (cherry picked from commit 462bfb0b6e941e2771440d8ee06cea149162b595) (cherry picked from commit a54abad44c572cee0e39ef60822033739b3c3306)
This commit is contained in:
@@ -2703,6 +2703,8 @@ int CLI::run(int argc, char **argv)
|
||||
old_variant_count[k] = old_variant_count[k] + 1;
|
||||
}
|
||||
}
|
||||
if (load_filament_count == 0)
|
||||
filament_variant_count = old_variant_count;
|
||||
}
|
||||
for (int index = 0; index < load_filaments_config.size(); index++) {
|
||||
DynamicPrintConfig& config = load_filaments_config[index];
|
||||
|
||||
Reference in New Issue
Block a user