Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions imgui_node_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1123,9 +1123,9 @@ void ed::EditorContext::Begin(const char* id, const ImVec2& size)

if (!m_IsInitialized)
{
// Cycle canvas so it has a change to setup its size before settings are loaded
m_Canvas.Begin(id, canvasSize);
m_Canvas.End();
// Cycle canvas, so it has a chance to set up its size before settings are loaded
if (m_Canvas.Begin(id, canvasSize))
m_Canvas.End();

LoadSettings();
m_IsInitialized = true;
Expand Down