mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2026-01-29 12:20:50 -07:00
FIX: crash when delete filament
jira: STUDIO-9956 Change-Id: Ibef1db35c2953040bb7df6b53ed3144f3ff85d96 (cherry picked from commit 99837d8c01e782ef6634ab60a06e05f48ca31437)
This commit is contained in:
parent
2456729002
commit
fbf2ccc226
2 changed files with 3 additions and 4 deletions
|
|
@ -766,7 +766,7 @@ void ObjectList::update_filament_values_for_items_when_delete_filament(const siz
|
|||
if (replace_id >= 0)
|
||||
new_extruder = replace_filament_id;
|
||||
extruder = wxString::Format("%d", new_extruder);
|
||||
object->config.set_key_value("extruder", new ConfigOptionInt(new_extruder));
|
||||
object->volumes[id]->config.set_key_value("extruder", new ConfigOptionInt(new_extruder));
|
||||
} else {
|
||||
int new_extruder = object->volumes[id]->config.extruder() > filament_id ? object->volumes[id]->config.extruder() - 1 : object->volumes[id]->config.extruder();
|
||||
extruder = wxString::Format("%d", new_extruder);
|
||||
|
|
@ -814,9 +814,6 @@ void ObjectList::update_filament_values_for_items_when_delete_filament(const siz
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// BBS
|
||||
wxGetApp().plater()->update();
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue