Nav: Comments, tweaks

This commit is contained in:
omar
2018-01-23 16:45:46 +01:00
parent 9edf211c0e
commit 13c407591e
2 changed files with 8 additions and 4 deletions

View File

@ -2020,10 +2020,10 @@ ImGuiID ImGui::GetActiveID()
void ImGui::SetFocusID(ImGuiID id, ImGuiWindow* window)
{
IM_ASSERT(id != 0);
ImGuiContext& g = *GImGui;
// Assume that SetActiveID() is called in the context where its NavLayer is the current layer, which is the case everywhere we call it.
IM_ASSERT(id != 0);
// Assume that SetFocusID() is called in the context where its NavLayer is the current layer, which is the case everywhere we call it.
const int nav_layer = window->DC.NavLayerCurrent;
g.NavId = id;
g.NavWindow = window;