1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-24 10:05:52 +00:00

Fixed a crash when switching to Preview

This commit is contained in:
Lukas Matena
2020-04-08 17:22:27 +02:00
parent d3bb966f4d
commit 3e15d22f35
2 changed files with 5 additions and 3 deletions
+2 -1
View File
@@ -412,7 +412,8 @@ bool GLGizmosManager::gizmo_event(SLAGizmoEventType action, const Vec2d& mouse_p
ClippingPlane GLGizmosManager::get_clipping_plane() const
{
if (! m_common_gizmos_data->object_clipper()
if (! m_common_gizmos_data
|| ! m_common_gizmos_data->object_clipper()
|| m_common_gizmos_data->object_clipper()->get_position() == 0.)
return ClippingPlane::ClipsNothing();
else {