From feb0f7627939c92d9de44bfa5620a4eed22bddfd Mon Sep 17 00:00:00 2001 From: Enrico Turri Date: Thu, 19 Jul 2018 13:43:33 +0200 Subject: [PATCH] Better fix for gizmo update when deleting objects --- xs/src/slic3r/GUI/GLCanvas3D.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/xs/src/slic3r/GUI/GLCanvas3D.cpp b/xs/src/slic3r/GUI/GLCanvas3D.cpp index 684757c79..716866e57 100644 --- a/xs/src/slic3r/GUI/GLCanvas3D.cpp +++ b/xs/src/slic3r/GUI/GLCanvas3D.cpp @@ -2264,8 +2264,12 @@ void GLCanvas3D::reload_scene(bool force) m_objects_volumes_idxs.push_back(load_object(*m_model, obj_idx)); } + // 1st call to reset if no objects left update_gizmos_data(); update_volumes_selection(m_objects_selections); + // 2nd call to restore if something selected + if (!m_objects_selections.empty()) + update_gizmos_data(); if (m_config->has("nozzle_diameter")) {