Skip to content

Commit 6846757

Browse files
committed
[Bundle] inform that child windows are incompatible with imgui-node-editor
cf thedmd#242 (comment)
1 parent 8b17842 commit 6846757

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

imgui_canvas.cpp

+10
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,11 @@
3232
# define ImDrawCallback_ImCanvas (ImDrawCallback)(-2)
3333
# endif
3434

35+
// [ADAPT_IMGUI_BUNDLE] inform that child windows are incompatible with imgui-node-editor (cf https://github.com/thedmd/imgui-node-editor/issues/242#issuecomment-2404714757)
36+
void Priv_ImGuiNodeEditor_EnterCanvas();
37+
void Priv_ImGuiNodeEditor_ExitCanvas();
38+
// [/ADAPT_IMGUI_BUNDLE]
39+
3540
namespace ImCanvasDetails {
3641

3742
DECLARE_HAS_MEMBER(HasFringeScale, _FringeScale);
@@ -199,6 +204,9 @@ bool ImGuiEx::Canvas::Begin(ImGuiID id, const ImVec2& size)
199204
}
200205
// [/ADAPT_IMGUI_BUNDLE]
201206

207+
// [ADAPT_IMGUI_BUNDLE] inform that child windows are incompatible with imgui-node-editor (cf https://github.com/thedmd/imgui-node-editor/issues/242#issuecomment-2404714757)
208+
Priv_ImGuiNodeEditor_EnterCanvas();
209+
202210
return true;
203211
}
204212

@@ -242,6 +250,8 @@ void ImGuiEx::Canvas::End()
242250
}
243251
// [/ADAPT_IMGUI_BUNDLE]
244252

253+
// [ADAPT_IMGUI_BUNDLE] inform that child windows are incompatible with imgui-node-editor (cf https://github.com/thedmd/imgui-node-editor/issues/242#issuecomment-2404714757)
254+
Priv_ImGuiNodeEditor_ExitCanvas();
245255
}
246256

247257
void ImGuiEx::Canvas::SetView(const ImVec2& origin, float scale)

0 commit comments

Comments
 (0)