mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-14 00:52:04 +00:00
Fix macos crash on close (#13215)
# Description <!-- > Please provide a summary of the changes made in this PR. Include details such as: > * What issue does this PR address or fix? > * What new features or enhancements does this PR introduce? > * Are there any breaking changes or dependencies that need to be considered? --> # Screenshots/Recordings/Graphs <!-- > Please attach relevant screenshots to showcase the UI changes. > Please attach images that can help explain the changes. --> ## Tests <!-- > Please describe the tests that you have conducted to verify the changes made in this PR. -->
This commit is contained in:
@@ -16712,7 +16712,7 @@ const GLCanvas3D* Plater::canvas3D() const
|
||||
|
||||
GLCanvas3D* Plater::get_view3D_canvas3D()
|
||||
{
|
||||
return p->view3D->get_canvas3d();
|
||||
return p ? p->view3D->get_canvas3d() : nullptr;
|
||||
}
|
||||
|
||||
GLCanvas3D* Plater::get_preview_canvas3D()
|
||||
|
||||
Reference in New Issue
Block a user