mirror of
https://github.com/Drezil/imgui.git
synced 2024-12-20 14:56:35 +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
@ -119,6 +119,10 @@ Other Changes:
|
|||||||
- Misc: Fix MinGW DLL build issue (when IMGUI_API is defined). [@rokups]
|
- Misc: Fix MinGW DLL build issue (when IMGUI_API is defined). [@rokups]
|
||||||
- CI: Add MinGW DLL build to test suite. [@rokups]
|
- CI: Add MinGW DLL build to test suite. [@rokups]
|
||||||
|
|
||||||
|
Docking+Viewports Branch:
|
||||||
|
|
||||||
|
- Disabled: Fixed nested BeginDisabled()/EndDisabled() bug in Docking branch due to bad merge. (#4655, #4452, #4453, #4462)
|
||||||
|
|
||||||
|
|
||||||
-----------------------------------------------------------------------
|
-----------------------------------------------------------------------
|
||||||
VERSION 1.85 (Released 2021-10-12)
|
VERSION 1.85 (Released 2021-10-12)
|
||||||
|
@ -7187,7 +7187,6 @@ void ImGui::BeginDisabled(bool disabled)
|
|||||||
{
|
{
|
||||||
ImGuiContext& g = *GImGui;
|
ImGuiContext& g = *GImGui;
|
||||||
bool was_disabled = (g.CurrentItemFlags & ImGuiItemFlags_Disabled) != 0;
|
bool was_disabled = (g.CurrentItemFlags & ImGuiItemFlags_Disabled) != 0;
|
||||||
g.DisabledAlphaBackup = g.Style.Alpha;
|
|
||||||
if (!was_disabled && disabled)
|
if (!was_disabled && disabled)
|
||||||
{
|
{
|
||||||
g.DisabledAlphaBackup = g.Style.Alpha;
|
g.DisabledAlphaBackup = g.Style.Alpha;
|
||||||
|
Loading…
Reference in New Issue
Block a user