Skip to content

Commit

Permalink
fix an issue that it can't be effective when use objecttable to chang…
Browse files Browse the repository at this point in the history
…e filament
  • Loading branch information
womendoushihaoyin committed Dec 17, 2024
1 parent 0014022 commit 7fe7d58
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/slic3r/GUI/GUI_ObjectList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -917,6 +917,22 @@ void ObjectList::update_filament_in_config(const wxDataViewItem& item)

const int extruder = m_objects_model->GetExtruderNumber(item);
m_config->set_key_value("extruder", new ConfigOptionInt(extruder));
if (m_config->has("sparse_infill_filament")) {
m_config->set("sparse_infill_filament", m_config->option("extruder")->getInt());
}
else {
m_config->set_key_value("sparse_infill_filament", new ConfigOptionInt(m_config->option("extruder")->getInt()));
}
if (m_config->has("solid_infill_filament")) {
m_config->set("solid_infill_filament", m_config->option("extruder")->getInt());
} else {
m_config->set_key_value("solid_infill_filament", new ConfigOptionInt(m_config->option("extruder")->getInt()));
}
if (m_config->has("wall_filament")) {
m_config->set("wall_filament", m_config->option("extruder")->getInt());
} else {
m_config->set_key_value("wall_filament", new ConfigOptionInt(m_config->option("extruder")->getInt()));
}

// BBS
if (item_type & itObject) {
Expand Down

0 comments on commit 7fe7d58

Please sign in to comment.