From c731f043319192718fde7755d3100342c323b35b Mon Sep 17 00:00:00 2001 From: Lukas Matena Date: Sat, 14 Mar 2020 09:42:24 +0100 Subject: [PATCH] Follow-up of previous commit - check that gizmos are enabled To be on the safe side, reinstate one part of the check that the previous code did. --- src/slic3r/GUI/Plater.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/Plater.cpp b/src/slic3r/GUI/Plater.cpp index 9918328f86..36e9615bae 100644 --- a/src/slic3r/GUI/Plater.cpp +++ b/src/slic3r/GUI/Plater.cpp @@ -2527,8 +2527,9 @@ std::vector Plater::priv::load_files(const std::vector& input_ selection.add_object((unsigned int)idx, false); } - // this is required because the selected object changed and the flatten on face an sla support gizmos need to be updated accordingly - view3D->get_canvas3d()->update_gizmos_on_off_state(); + if (view3D->get_canvas3d()->get_gizmos_manager().is_enabled()) + // this is required because the selected object changed and the flatten on face an sla support gizmos need to be updated accordingly + view3D->get_canvas3d()->update_gizmos_on_off_state(); } return obj_idxs;