FIX:upgrade cancel_paint_color api

jira: STUDIO-9907
Change-Id: Ie04fc4e1224e84810acde347b8ae9e73530f9031
(cherry picked from commit 915bae32d1d9023a0314361d1b257509fc676c7b)
This commit is contained in:
zhou.xu 2025-01-18 14:26:04 +08:00 committed by Noisyfox
parent 48c67f6d94
commit 8264e9ee41

View file

@ -484,8 +484,10 @@ void ObjColorPanel::send_new_filament_to_ui()
void ObjColorPanel::cancel_paint_color() {
m_filament_ids.clear();
auto mo = m_obj_in_out.model->objects[0];
mo->config.set("extruder", 1);
auto mv = mo->volumes[0];
mv->mmu_segmentation_facets.reset();
mv->config.set("extruder", 1);
}
void ObjColorPanel::update_filament_ids()