Skip to content

BeginDisabled()/EndDisabled() get wrong 'Alpha' value in docking branch #4655

@junjie020

Description

@junjie020

Version/Branch of Dear ImGui:

Version: 1.85
Branch: docking

Back-end/Renderer/Compiler/OS

Back-ends: bgfx
Compiler: vs2019
Operating System: Window 10

My Issue/Question:
Nested call BeginDisabled()/EndDisabled() to make one of the ui as disable state, will casue all ui disappear.

I found that the UI alpha value will be set to 0.

And I found the reason maybe some error in BeginDisabled():
https://github.com/ocornut/imgui/blob/docking/imgui.cpp#L7190

Where in master branch is:
https://github.com/ocornut/imgui/blob/master/imgui.cpp#L6648

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions