Nelarius / imnodes

A small, dependency-free node editor for dear imgui
MIT License
1.94k stars 237 forks source link

phantom TitleBar rect glitch when conditionnal call to BeginNodeTitleBar #173

Open vlmillet opened 1 year ago

vlmillet commented 1 year ago

If, from one frame to another, we call or don't call BeginNodeTitleBaron a specific node (depending on a condition for my case), a glitching rect stays on the screen. It is due to a missing value reset of title bar content rect in BeginNode().

Adding node.TitleBarContentRect = ImRect(); in BeginNode() solves the issue