From 4fb7bb8deca1b9e21ccfd3ea453a47b3d98014d9 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Mon, 10 Oct 2022 14:41:05 +0200 Subject: [PATCH] SPE-1342 - Fixed crash after undo in SLA support point gizmo --- src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp b/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp index 026fae17b..b562eb49a 100644 --- a/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp +++ b/src/slic3r/GUI/Gizmos/GLGizmoSlaSupports.cpp @@ -78,14 +78,14 @@ void GLGizmoSlaSupports::data_changed() if (mo) { if (mo->sla_points_status == sla::PointsStatus::Generating) get_data_from_backend(); - } #if ENABLE_RAYCAST_PICKING - if (m_raycasters.empty()) - on_register_raycasters_for_picking(); - else - update_raycasters_for_picking_transform(); + if (m_raycasters.empty()) + on_register_raycasters_for_picking(); + else + update_raycasters_for_picking_transform(); #endif // ENABLE_RAYCAST_PICKING + } }