From 1f9d0e4685bd1ef25a2d6ccd77532f143eac7ee5 Mon Sep 17 00:00:00 2001 From: alves Date: Wed, 7 Jan 2026 19:01:55 +0800 Subject: [PATCH] fix build error bug --- src/slic3r/GUI/GLCanvas3D.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index abad24d327..a78ff2d68f 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -1330,7 +1330,9 @@ void GLCanvas3D::reset_volumes() m_volumes.clear(); m_dirty = true; - if (wxGetApp.plater() && wxGetApp().plater()->get_notification_manager()) + auto pLater = wxGetApp().plater(); + + if (pLater && wxGetApp().plater()->get_notification_manager()) { _set_warning_notification(EWarning::ObjectOutside, false); }