mirror of
https://github.com/Drezil/imgui.git
synced 2024-11-26 05:27:01 +00:00
Fix - amend 1ad1530
(range-select branch need the NextItemData in NavProcessItem)
This commit is contained in:
parent
90bf996e1a
commit
c881667c00
@ -7450,7 +7450,6 @@ bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg, ImGu
|
|||||||
g.LastItemData.Rect = bb;
|
g.LastItemData.Rect = bb;
|
||||||
g.LastItemData.InFlags = g.CurrentItemFlags;
|
g.LastItemData.InFlags = g.CurrentItemFlags;
|
||||||
g.LastItemData.StatusFlags = ImGuiItemStatusFlags_None;
|
g.LastItemData.StatusFlags = ImGuiItemStatusFlags_None;
|
||||||
g.NextItemData.Flags = ImGuiNextItemDataFlags_None;
|
|
||||||
|
|
||||||
// Directional navigation processing
|
// Directional navigation processing
|
||||||
if (id != 0)
|
if (id != 0)
|
||||||
@ -7479,6 +7478,7 @@ bool ImGui::ItemAdd(const ImRect& bb, ImGuiID id, const ImRect* nav_bb_arg, ImGu
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
g.NextItemData.Flags = ImGuiNextItemDataFlags_None;
|
||||||
|
|
||||||
#ifdef IMGUI_ENABLE_TEST_ENGINE
|
#ifdef IMGUI_ENABLE_TEST_ENGINE
|
||||||
if (id != 0)
|
if (id != 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user