mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-05-14 13:02:39 -07:00
#3964 - Attempt to fix crash when closing on Linux (Debian unstable)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user