mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-07-27 04:42:33 +00:00
FIX: fix serveral issues under multiple plate slicing
1. preview result not correct when switch from invalid to valid 2. slice_all button not correct after loading gcode 3. slice_all button always set to enable with normal model(not gcode and exported files) 4. thumbnail missing issue after mmu paint Change-Id: I9873a035acc277b790d46d705c4a794c09bbd889
This commit is contained in:
@@ -697,7 +697,9 @@ void GLGizmoMmuSegmentation::update_model_object()
|
||||
|
||||
if (updated) {
|
||||
const ModelObjectPtrs &mos = wxGetApp().model().objects;
|
||||
wxGetApp().obj_list()->update_info_items(std::find(mos.begin(), mos.end(), mo) - mos.begin());
|
||||
size_t obj_idx = std::find(mos.begin(), mos.end(), mo) - mos.begin();
|
||||
wxGetApp().obj_list()->update_info_items(obj_idx);
|
||||
wxGetApp().plater()->get_partplate_list().notify_instance_update(obj_idx, 0);
|
||||
m_parent.post_event(SimpleEvent(EVT_GLCANVAS_SCHEDULE_BACKGROUND_PROCESS));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user