From 0f7937f4f2c64abdc61d100f21c426e2e366d2dd Mon Sep 17 00:00:00 2001 From: Bernard Kwok Date: Mon, 2 Mar 2026 11:45:21 -0500 Subject: [PATCH] Add missing initializations. _currUiNode may hold onto to last selection. _currRenderNode should also be cleared to prevent trying to render last node. (should also remove extra render when load and select nodegraph). --- source/MaterialXGraphEditor/Graph.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/MaterialXGraphEditor/Graph.cpp b/source/MaterialXGraphEditor/Graph.cpp index 98c61a7857..2509e50807 100644 --- a/source/MaterialXGraphEditor/Graph.cpp +++ b/source/MaterialXGraphEditor/Graph.cpp @@ -2853,6 +2853,8 @@ void Graph::initializeGraph() _state.graphElem = _graphDoc; _state.isCompoundNodeGraph = false; _prevUiNode = nullptr; + _currUiNode = nullptr; + _currRenderNode = nullptr; // Set the display name from the current material filename. mx::FilePath materialPath(_materialFilename);