mirror of
https://github.com/ocornut/imgui.git
synced 2026-02-05 04:10:07 +00:00
Fixed nested BeginDisabled()/EndDisabled() bug in Docking branch due to bad merge. (#4655, #4452, #4453, #4462)
This commit is contained in:
parent
9b59455184
commit
05877c14df
2 changed files with 4 additions and 1 deletions
|
|
@ -7187,7 +7187,6 @@ void ImGui::BeginDisabled(bool disabled)
|
|||
{
|
||||
ImGuiContext& g = *GImGui;
|
||||
bool was_disabled = (g.CurrentItemFlags & ImGuiItemFlags_Disabled) != 0;
|
||||
g.DisabledAlphaBackup = g.Style.Alpha;
|
||||
if (!was_disabled && disabled)
|
||||
{
|
||||
g.DisabledAlphaBackup = g.Style.Alpha;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue