Skip to content

Commit

Permalink
Multi-context fix: active editor context not set. Close Nelarius#143.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nelarius committed May 31, 2022
1 parent ff89e05 commit d88f991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion imnodes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d88f991

Please sign in to comment.