Fixed build on MAC

This commit is contained in:
enricoturri1966 2020-12-03 15:40:52 +01:00
parent cc0688678c
commit 6835c5ad35

View file

@ -602,7 +602,7 @@ void Mouse3DController::disconnected()
m_params_by_device[m_device_str] = m_params_ui; m_params_by_device[m_device_str] = m_params_ui;
m_device_str.clear(); m_device_str.clear();
m_connected = false; m_connected = false;
wxGetApp().plater()->get_notification_manager()->push_notification(NotificationType::Mouse3dDisconnected, *(wxGetApp().plater()->get_current_canvas3D())); wxGetApp().plater()->get_notification_manager()->push_notification(NotificationType::Mouse3dDisconnected);
wxGetApp().plater()->CallAfter([]() { wxGetApp().plater()->CallAfter([]() {
Plater *plater = wxGetApp().plater(); Plater *plater = wxGetApp().plater();