mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-08 07:47:43 -07:00
FIX: CLI: fix the filament_map incorrect issue
jira: no-jira Change-Id: I8f389ae1dca2cbe79a2db7a5e9fbb94da430d037 (cherry picked from commit 89308c8676e4f953a69198f706852e8b6d42231c)
This commit is contained in:
parent
30f85ee495
commit
eb1964feb2
1 changed files with 3 additions and 1 deletions
|
|
@ -5299,8 +5299,10 @@ int CLI::run(int argc, char **argv)
|
|||
}
|
||||
else {
|
||||
std::vector<int> filament_maps;
|
||||
if (m_extra_config.option<ConfigOptionInts>("filament_map"))
|
||||
if (m_extra_config.option<ConfigOptionInts>("filament_map")) {
|
||||
filament_maps = m_extra_config.option<ConfigOptionInts>("filament_map")->values;
|
||||
part_plate->set_filament_maps(filament_maps);
|
||||
}
|
||||
else
|
||||
filament_maps = part_plate->get_real_filament_maps(m_print_config);
|
||||
for (int index = 0; index < filament_maps.size(); index++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue