mirror of
				https://github.com/ocornut/imgui.git
				synced 2025-10-26 12:27:30 +00:00 
			
		
		
		
	Nav: NavProcessItem() updates current NavLayer. Basically we're hearing toward rebuilidng nav info from an id. (#787).
This commit is contained in:
		| @@ -2258,6 +2258,7 @@ static void NavProcessItem(ImGuiWindow* window, const ImRect& nav_bb, const ImGu | |||||||
|     if (g.NavId == id) |     if (g.NavId == id) | ||||||
|     { |     { | ||||||
|         g.NavWindow = window;                                           // Always refresh g.NavWindow, because some operations such as FocusItem() don't have a window. |         g.NavWindow = window;                                           // Always refresh g.NavWindow, because some operations such as FocusItem() don't have a window. | ||||||
|  |         g.NavLayer = window->DC.NavLayerCurrent; | ||||||
|         g.NavIdIsAlive = true; |         g.NavIdIsAlive = true; | ||||||
|         g.NavIdTabCounter = window->FocusIdxTabCounter; |         g.NavIdTabCounter = window->FocusIdxTabCounter; | ||||||
|         window->NavRectRel[window->DC.NavLayerCurrent] = nav_bb_rel;    // Store item bounding box (relative to window position) |         window->NavRectRel[window->DC.NavLayerCurrent] = nav_bb_rel;    // Store item bounding box (relative to window position) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 omar
					omar