mirror of
https://github.com/AxioDL/metaforce.git
synced 2025-05-13 23:11:20 +00:00
Fix debugHovered logic
This commit is contained in:
parent
25db5f6e44
commit
a29a0a583b
@ -159,6 +159,7 @@ void ImGuiConsole::UpdateEntityEntries() {
|
|||||||
if (entry.isActor) {
|
if (entry.isActor) {
|
||||||
LerpDebugColor(entry.AsActor());
|
LerpDebugColor(entry.AsActor());
|
||||||
}
|
}
|
||||||
|
entry.ent->m_debugHovered = false;
|
||||||
uid = list.GetNextObjectIndex(uid);
|
uid = list.GetNextObjectIndex(uid);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -662,9 +663,6 @@ void ImGuiConsole::PostUpdate() {
|
|||||||
inspectingEntities.erase(item.uid);
|
inspectingEntities.erase(item.uid);
|
||||||
item.uid = kInvalidUniqueId;
|
item.uid = kInvalidUniqueId;
|
||||||
item.ent = nullptr; // for safety
|
item.ent = nullptr; // for safety
|
||||||
} else {
|
|
||||||
// Clear debug hovered
|
|
||||||
ent->m_debugHovered = false;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user