#3964 - Attempt to fix crash when closing on Linux (Debian unstable)

This commit is contained in:
enricoturri1966 2020-04-01 09:58:31 +02:00
parent daa6dd0a25
commit 1f3046f65d
4 changed files with 23 additions and 7 deletions

View file

@ -1834,6 +1834,7 @@ struct Plater::priv
GLCanvas3D* get_current_canvas3D();
#if ENABLE_NON_STATIC_CANVAS_MANAGER
void unbind_canvas_event_handlers();
void reset_canvas_volumes();
#endif // ENABLE_NON_STATIC_CANVAS_MANAGER
bool init_view_toolbar();
@ -4084,6 +4085,15 @@ void Plater::priv::unbind_canvas_event_handlers()
if (preview != nullptr)
preview->get_canvas3d()->unbind_event_handlers();
}
void Plater::priv::reset_canvas_volumes()
{
if (view3D != nullptr)
view3D->get_canvas3d()->reset_volumes();
if (preview != nullptr)
preview->get_canvas3d()->reset_volumes();
}
#endif // ENABLE_NON_STATIC_CANVAS_MANAGER
bool Plater::priv::init_view_toolbar()
@ -5500,6 +5510,11 @@ void Plater::unbind_canvas_event_handlers()
{
p->unbind_canvas_event_handlers();
}
void Plater::reset_canvas_volumes()
{
p->reset_canvas_volumes();
}
#endif // ENABLE_NON_STATIC_CANVAS_MANAGER
PrinterTechnology Plater::printer_technology() const