Tech ENABLE_WORLD_COORDINATE - Fixed sidebar hints not hidden from 3D scene when deleting the current selection

This commit is contained in:
enricoturri1966 2022-12-08 15:09:36 +01:00
parent 18a28a8dc0
commit 5c82b5858b

View File

@ -2825,8 +2825,12 @@ void ObjectList::part_selection_changed()
panel.Freeze();
#if ENABLE_WORLD_COORDINATE
std::string opt_key;
if (m_selected_object_id >= 0) {
const ManipulationEditor* const editor = wxGetApp().obj_manipul()->get_focused_editor();
const std::string opt_key = (editor != nullptr) ? editor->get_full_opt_name() : "";
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);