From c0ab834519da90554351d3d98b1252e56240fe33 Mon Sep 17 00:00:00 2001 From: enricoturri1966 Date: Thu, 8 Dec 2022 15:09:36 +0100 Subject: [PATCH] Tech ENABLE_WORLD_COORDINATE - Fixed sidebar hints not hidden from 3D scene when deleting the current selection --- src/slic3r/GUI/GUI_ObjectList.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/slic3r/GUI/GUI_ObjectList.cpp b/src/slic3r/GUI/GUI_ObjectList.cpp index 8c1546410..3d55e2174 100644 --- a/src/slic3r/GUI/GUI_ObjectList.cpp +++ b/src/slic3r/GUI/GUI_ObjectList.cpp @@ -2825,8 +2825,12 @@ void ObjectList::part_selection_changed() panel.Freeze(); #if ENABLE_WORLD_COORDINATE - const ManipulationEditor* const editor = wxGetApp().obj_manipul()->get_focused_editor(); - const std::string opt_key = (editor != nullptr) ? editor->get_full_opt_name() : ""; + std::string opt_key; + if (m_selected_object_id >= 0) { + const ManipulationEditor* const editor = wxGetApp().obj_manipul()->get_focused_editor(); + if (editor != nullptr) + opt_key = editor->get_full_opt_name(); + } wxGetApp().plater()->canvas3D()->handle_sidebar_focus_event(opt_key, !opt_key.empty()); #else wxGetApp().plater()->canvas3D()->handle_sidebar_focus_event("", false);