Follow-up of 3a99b23ec7
-> F5 accelerator added also to objects list
This commit is contained in:
parent
8453c88482
commit
03680bb014
2 changed files with 6 additions and 1 deletions
|
@ -978,6 +978,8 @@ void ObjectList::key_event(wxKeyEvent& event)
|
||||||
) {
|
) {
|
||||||
remove();
|
remove();
|
||||||
}
|
}
|
||||||
|
else if (event.GetKeyCode() == WXK_F5)
|
||||||
|
wxGetApp().plater()->reload_all_from_disk();
|
||||||
else if (wxGetKeyState(wxKeyCode('A')) && wxGetKeyState(WXK_CONTROL/*WXK_SHIFT*/))
|
else if (wxGetKeyState(wxKeyCode('A')) && wxGetKeyState(WXK_CONTROL/*WXK_SHIFT*/))
|
||||||
select_item_all_children();
|
select_item_all_children();
|
||||||
else if (wxGetKeyState(wxKeyCode('C')) && wxGetKeyState(WXK_CONTROL))
|
else if (wxGetKeyState(wxKeyCode('C')) && wxGetKeyState(WXK_CONTROL))
|
||||||
|
|
|
@ -2076,7 +2076,7 @@ Plater::priv::priv(Plater *q, MainFrame *main_frame)
|
||||||
view3D_canvas->Bind(EVT_GLCANVAS_RESET_LAYER_HEIGHT_PROFILE, [this](SimpleEvent&) { this->view3D->get_canvas3d()->reset_layer_height_profile(); });
|
view3D_canvas->Bind(EVT_GLCANVAS_RESET_LAYER_HEIGHT_PROFILE, [this](SimpleEvent&) { this->view3D->get_canvas3d()->reset_layer_height_profile(); });
|
||||||
view3D_canvas->Bind(EVT_GLCANVAS_ADAPTIVE_LAYER_HEIGHT_PROFILE, [this](Event<float>& evt) { this->view3D->get_canvas3d()->adaptive_layer_height_profile(evt.data); });
|
view3D_canvas->Bind(EVT_GLCANVAS_ADAPTIVE_LAYER_HEIGHT_PROFILE, [this](Event<float>& evt) { this->view3D->get_canvas3d()->adaptive_layer_height_profile(evt.data); });
|
||||||
view3D_canvas->Bind(EVT_GLCANVAS_SMOOTH_LAYER_HEIGHT_PROFILE, [this](HeightProfileSmoothEvent& evt) { this->view3D->get_canvas3d()->smooth_layer_height_profile(evt.data); });
|
view3D_canvas->Bind(EVT_GLCANVAS_SMOOTH_LAYER_HEIGHT_PROFILE, [this](HeightProfileSmoothEvent& evt) { this->view3D->get_canvas3d()->smooth_layer_height_profile(evt.data); });
|
||||||
view3D_canvas->Bind(EVT_GLCANVAS_RELOAD_FROM_DISK, [this](SimpleEvent&) { if (!this->model.objects.empty()) this->reload_all_from_disk(); });
|
view3D_canvas->Bind(EVT_GLCANVAS_RELOAD_FROM_DISK, [this](SimpleEvent&) { this->reload_all_from_disk(); });
|
||||||
|
|
||||||
// 3DScene/Toolbar:
|
// 3DScene/Toolbar:
|
||||||
view3D_canvas->Bind(EVT_GLTOOLBAR_ADD, &priv::on_action_add, this);
|
view3D_canvas->Bind(EVT_GLTOOLBAR_ADD, &priv::on_action_add, this);
|
||||||
|
@ -3451,6 +3451,9 @@ void Plater::priv::reload_from_disk()
|
||||||
|
|
||||||
void Plater::priv::reload_all_from_disk()
|
void Plater::priv::reload_all_from_disk()
|
||||||
{
|
{
|
||||||
|
if (model.objects.empty())
|
||||||
|
return;
|
||||||
|
|
||||||
Plater::TakeSnapshot snapshot(q, _(L("Reload all from disk")));
|
Plater::TakeSnapshot snapshot(q, _(L("Reload all from disk")));
|
||||||
Plater::SuppressSnapshots suppress(q);
|
Plater::SuppressSnapshots suppress(q);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue