-
Notifications
You must be signed in to change notification settings - Fork 639
Closed
Labels
Description
I found a problem.
This code causes assert in Suspend.
ImGui::Begin("Begin");
ImGui::Columns(2);
ImGui::NextColumn();
ed::SetCurrentEditor(g_Context);
ed::Begin("My Editor", ImVec2(0.0, 0.0f));
// assert!
ed::Suspend();
ed::Resume();
ed::End();
ed::SetCurrentEditor(nullptr);
ImGui::Columns(1);
mGui::End();
But this codes runs with Begin and End child.
ImGui::Begin("Begin");
ImGui::Columns(2);
ImGui::NextColumn();
// add
ImGui::BeginChild("Child");
ed::SetCurrentEditor(g_Context);
ed::Begin("My Editor", ImVec2(0.0, 0.0f));
ed::Suspend();
ed::Resume();
ed::End();
ed::SetCurrentEditor(nullptr);
// add
ImGui::EndChild();
ImGui::Columns(1);
mGui::End();
Is it a bug?
Best regards.