From 73eba8c930310a89870f6a061076a579d9251358 Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Fri, 27 Jan 2023 12:23:25 +0100 Subject: [PATCH] Revert "Fixed crash when changing printer while Hollow gizmo is open" This reverts commit a3324d3e50114aa16c48be7ec6b939c9315f4dde. --- src/slic3r/GUI/GLCanvas3D.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/slic3r/GUI/GLCanvas3D.cpp b/src/slic3r/GUI/GLCanvas3D.cpp index 0adfdb92e..a50452c7c 100644 --- a/src/slic3r/GUI/GLCanvas3D.cpp +++ b/src/slic3r/GUI/GLCanvas3D.cpp @@ -2004,12 +2004,7 @@ void GLCanvas3D::reload_scene(bool refresh_immediately, bool force_full_scene_re else m_selection.volumes_changed(map_glvolume_old_to_new); - // The current gizmo may be not supported by the current printer technology - // after the user changes printer. - // Check if it is still activable before to call update_data() method. - const GLGizmoBase* gizmo = m_gizmos.get_current(); - if (gizmo != nullptr && gizmo->is_activable()) - m_gizmos.update_data(); + m_gizmos.update_data(); m_gizmos.refresh_on_off_state(); // Update the toolbar