Browse Source

Nav: Removed unnecessary test (always failing).

omar 6 years ago
parent
commit
f56d9b74cc
1 changed files with 1 additions and 2 deletions
  1. 1 2
      imgui.cpp

+ 1 - 2
imgui.cpp

@@ -7610,9 +7610,8 @@ static void ImGui::NavUpdate()
     NavUpdateWindowing();
     NavUpdateWindowing();
 
 
     // Set output flags for user application
     // Set output flags for user application
-    // FIXME: g.NavInitRequest is always false at this point, investigate the intent of operation done here.
     g.IO.NavActive = (nav_keyboard_active || nav_gamepad_active) && g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs);
     g.IO.NavActive = (nav_keyboard_active || nav_gamepad_active) && g.NavWindow && !(g.NavWindow->Flags & ImGuiWindowFlags_NoNavInputs);
-    g.IO.NavVisible = (g.IO.NavActive && g.NavId != 0 && !g.NavDisableHighlight) || (g.NavWindowingTarget != NULL) || g.NavInitRequest;
+    g.IO.NavVisible = (g.IO.NavActive && g.NavId != 0 && !g.NavDisableHighlight) || (g.NavWindowingTarget != NULL);
 
 
     // Process NavCancel input (to close a popup, get back to parent, clear focus)
     // Process NavCancel input (to close a popup, get back to parent, clear focus)
     if (IsNavInputPressed(ImGuiNavInput_Cancel, ImGuiInputReadMode_Pressed))
     if (IsNavInputPressed(ImGuiNavInput_Cancel, ImGuiInputReadMode_Pressed))