Fix debugHovered logic

This commit is contained in:
Luke Street 2021-05-27 12:27:31 -04:00
parent 25db5f6e44
commit a29a0a583b
1 changed files with 1 additions and 3 deletions

View File

@ -159,6 +159,7 @@ void ImGuiConsole::UpdateEntityEntries() {
if (entry.isActor) {
LerpDebugColor(entry.AsActor());
}
entry.ent->m_debugHovered = false;
uid = list.GetNextObjectIndex(uid);
}
}
@ -662,9 +663,6 @@ void ImGuiConsole::PostUpdate() {
inspectingEntities.erase(item.uid);
item.uid = kInvalidUniqueId;
item.ent = nullptr; // for safety
} else {
// Clear debug hovered
ent->m_debugHovered = false;
}
}
} else {