Fix inspector switching from scene selection
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user