From e3710448ae05b32c05b442d084360e2a4441b0ae Mon Sep 17 00:00:00 2001 From: omar Date: Thu, 7 Jun 2018 18:04:44 +0200 Subject: [PATCH] Nav: Removed an unnecessary assertion that could fail when using Mouse and Keyboard simultaneously with the NavEnableSetMousePos flag. (#1867) --- imgui.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/imgui.cpp b/imgui.cpp index 7aeb54af..44d09852 100644 --- a/imgui.cpp +++ b/imgui.cpp @@ -3262,7 +3262,6 @@ static void ImGui::NavUpdate() // Set mouse position given our knowledge of the navigated item position from last frame if ((g.IO.ConfigFlags & ImGuiConfigFlags_NavEnableSetMousePos) && (g.IO.BackendFlags & ImGuiBackendFlags_HasSetMousePos)) { - IM_ASSERT(!g.NavDisableHighlight && g.NavDisableMouseHover); g.IO.MousePos = g.IO.MousePosPrev = NavCalcPreferredRefPos(); g.IO.WantSetMousePos = true; }