mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-07 23:17:35 -06:00
FIX: cannot immediately update the left list
Right click modification cannot immediately update plate_name the left list Change-Id: Ieb2a38d687f79195a9748e093c0d96a36236d1b5 (cherry picked from commit 2331c2e4fe4de3350a3c3765b7e00f30025addff)
This commit is contained in:
parent
fadb421e63
commit
1aa51e9a99
7 changed files with 13 additions and 3 deletions
|
@ -2133,6 +2133,7 @@ struct Plater::priv
|
|||
void on_action_layersediting(SimpleEvent&);
|
||||
|
||||
void on_object_select(SimpleEvent&);
|
||||
void on_plate_name_change(SimpleEvent &);
|
||||
void on_right_click(RBtnEvent&);
|
||||
//BBS: add model repair
|
||||
void on_repair_model(wxCommandEvent &event);
|
||||
|
@ -2424,6 +2425,7 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame)
|
|||
this->background_process_timer.Start(500, wxTIMER_ONE_SHOT);
|
||||
});
|
||||
view3D_canvas->Bind(EVT_GLCANVAS_OBJECT_SELECT, &priv::on_object_select, this);
|
||||
view3D_canvas->Bind(EVT_GLCANVAS_PLATE_NAME_CHANGE, &priv::on_plate_name_change, this);
|
||||
view3D_canvas->Bind(EVT_GLCANVAS_RIGHT_CLICK, &priv::on_right_click, this);
|
||||
//BBS: add part plate related logic
|
||||
view3D_canvas->Bind(EVT_GLCANVAS_PLATE_RIGHT_CLICK, &priv::on_plate_right_click, this);
|
||||
|
@ -6423,6 +6425,11 @@ void Plater::priv::on_object_select(SimpleEvent& evt)
|
|||
selection_changed();
|
||||
}
|
||||
|
||||
void Plater::priv::on_plate_name_change(SimpleEvent &) {
|
||||
wxGetApp().obj_list()->update_selections();
|
||||
selection_changed();
|
||||
}
|
||||
|
||||
//BBS: repair model through netfabb
|
||||
void Plater::priv::on_repair_model(wxCommandEvent &event)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue