From d88f99125bb72cdb71b4c27ff6eb7f318d89a4c5 Mon Sep 17 00:00:00 2001 From: Johann Muszynski Date: Tue, 31 May 2022 09:40:05 +0300 Subject: [PATCH] Multi-context fix: active editor context not set. Close #143. --- imnodes.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/imnodes.cpp b/imnodes.cpp index 1050da8..7689cb1 100644 --- a/imnodes.cpp +++ b/imnodes.cpp @@ -1692,7 +1692,7 @@ void Initialize(ImNodesContext* context) context->CurrentNodeIdx = INT_MAX; context->DefaultEditorCtx = EditorContextCreate(); - EditorContextSet(GImNodes->DefaultEditorCtx); + context->EditorCtx = context->DefaultEditorCtx; context->CurrentAttributeFlags = ImNodesAttributeFlags_None; context->AttributeFlagStack.push_back(GImNodes->CurrentAttributeFlags);