Fix crash caused by assertion when creating a node that only contains a NodeTitleBar
This commit is contained in:
parent
97ec4ea413
commit
439912cc48
@ -2539,6 +2539,9 @@ void EndNodeTitleBar()
|
|||||||
ImGui::ItemAdd(GetNodeTitleRect(node), ImGui::GetID("title_bar"));
|
ImGui::ItemAdd(GetNodeTitleRect(node), ImGui::GetID("title_bar"));
|
||||||
|
|
||||||
ImGui::SetCursorPos(GridSpaceToEditorSpace(editor, GetNodeContentOrigin(node)));
|
ImGui::SetCursorPos(GridSpaceToEditorSpace(editor, GetNodeContentOrigin(node)));
|
||||||
|
|
||||||
|
// Fix for ImGui::ErrorCheckUsingSetCursorPosToExtendParentBoundaries()
|
||||||
|
ImGui::Dummy(ImVec2(0.0f, 0.0f));
|
||||||
}
|
}
|
||||||
|
|
||||||
void BeginInputAttribute(const int id, const ImNodesPinShape shape)
|
void BeginInputAttribute(const int id, const ImNodesPinShape shape)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user