mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-19 22:36:35 +00:00
Nav: Removed an unnecessary assertion that could fail when using Mouse and Keyboard simultaneously with the NavEnableSetMousePos flag. (#1867)
This commit is contained in:
parent
929529a0db
commit
e3710448ae
@ -3262,7 +3262,6 @@ static void ImGui::NavUpdate()
|
|||||||
// Set mouse position given our knowledge of the navigated item position from last frame
|
// 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))
|
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.MousePos = g.IO.MousePosPrev = NavCalcPreferredRefPos();
|
||||||
g.IO.WantSetMousePos = true;
|
g.IO.WantSetMousePos = true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user