From 439912cc48588a61ac0a34051ccce8f023a4cbb1 Mon Sep 17 00:00:00 2001 From: LuChiChick <1084116302@qq.com> Date: Tue, 11 Nov 2025 15:22:39 +0800 Subject: [PATCH] Fix crash caused by assertion when creating a node that only contains a NodeTitleBar --- Lib/imnodes-master-b2ec254/imnodes.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Lib/imnodes-master-b2ec254/imnodes.cpp b/Lib/imnodes-master-b2ec254/imnodes.cpp index e2d9e5e..8c8c9c6 100644 --- a/Lib/imnodes-master-b2ec254/imnodes.cpp +++ b/Lib/imnodes-master-b2ec254/imnodes.cpp @@ -2539,6 +2539,9 @@ void EndNodeTitleBar() ImGui::ItemAdd(GetNodeTitleRect(node), ImGui::GetID("title_bar")); 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)