mirror of
				https://github.com/Drezil/imgui.git
				synced 2025-10-30 20:51:06 +01:00 
			
		
		
		
	Internals: SetActiveID window cannot be NULL
This commit is contained in:
		| @@ -1963,10 +1963,10 @@ void ImGui::SetActiveID(ImGuiID id, ImGuiWindow* window) | |||||||
|     if (id) |     if (id) | ||||||
|     { |     { | ||||||
|         g.NavId = id; |         g.NavId = id; | ||||||
|         if (window) |  | ||||||
|             g.NavLayer = window->DC.NavLayerCurrent; |         // Assume that SetActiveID() is called in the context where its NavLayer is the current layer, which is the case everywhere we call it. | ||||||
|         if (window) // NB: We current assume that SetActiveId() is called in the context where its NavLayer is the current one, which should be the case. |         g.NavLayer = window->DC.NavLayerCurrent; | ||||||
|             window->NavLastIds[window->DC.NavLayerCurrent] = id; |         window->NavLastIds[window->DC.NavLayerCurrent] = id; | ||||||
|         if (g.ActiveIdSource == ImGuiInputSource_Nav) |         if (g.ActiveIdSource == ImGuiInputSource_Nav) | ||||||
|             g.NavDisableMouseHover = true; |             g.NavDisableMouseHover = true; | ||||||
|         else |         else | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user