Fix inspector switching from scene selection

This commit is contained in:
2026-04-01 23:52:13 +08:00
parent 8cd7fc0ca1
commit d7e9e978d0

View File

@@ -71,6 +71,9 @@ void InspectorPanel::OnDetach() {
void InspectorPanel::OnSelectionChanged(const SelectionChangedEvent& event) {
Actions::HandleInspectorSelectionChanged(*m_context, event, m_selectedEntityId, m_addComponentPopup);
if (event.primarySelection != 0) {
m_lastExplicitRoute = EditorActionRoute::Hierarchy;
}
}
void InspectorPanel::Render() {