Menus: Implement BeginMenu() appending to existing menu when executed with same ID multiple times. (#1207)

This commit is contained in:
Rokas Kupstys
2020-02-28 15:50:44 +02:00
committed by ocornut
parent 898e91f20d
commit 0342a3c548
5 changed files with 23 additions and 7 deletions

View File

@ -3623,6 +3623,7 @@ void ImGui::NewFrame()
g.FrameCount += 1;
g.TooltipOverrideCount = 0;
g.WindowsActiveCount = 0;
g.RenderedMenusId.resize(0);
// Setup current font and draw list shared data
g.IO.Fonts->Locked = true;