FIX: slice error when switching printer
from mulit-extruder to single-extruder jira: none Change-Id: I0fc00a279dbc7f5d6b1fb6df5556375bfb95782e
This commit is contained in:
parent
001144400b
commit
01075411dc
|
@ -3087,6 +3087,9 @@ void PartPlate::set_unprintable_filament_ids(const std::vector<std::vector<int>>
|
|||
void PartPlate::on_extruder_count_changed(int extruder_count)
|
||||
{
|
||||
if (extruder_count < 2) {
|
||||
std::vector<int> f_map = wxGetApp().plater()->get_global_filament_map();
|
||||
std::fill(f_map.begin(), f_map.end(), 1);
|
||||
wxGetApp().plater()->set_global_filament_map(f_map);
|
||||
// clear filament map and mode in single extruder mode
|
||||
clear_filament_map();
|
||||
clear_filament_map_mode();
|
||||
|
|
Loading…
Reference in New Issue