Skip to content

Commit

Permalink
Fix edge case with editor pasting (#2145)
Browse files Browse the repository at this point in the history
This changelist fixes the edge case of pasting with an empty copy buffer in the Graph Editor.

Previously, this action would have an unintended effect on node positions, and it now has no impact on the graph.
  • Loading branch information
jstone-lucasfilm authored Dec 15, 2024
1 parent e5a9e35 commit 13892cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/MaterialXGraphEditor/Graph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4045,8 +4045,8 @@ void Graph::drawGraph(ImVec2 mousePos)
for (std::map<UiNodePtr, UiNodePtr>::iterator iter = _copiedNodes.begin(); iter != _copiedNodes.end(); iter++)
{
copyUiNode(iter->first);
_addNewNode = true;
}
_addNewNode = true;
}
else
{
Expand Down

0 comments on commit 13892cb

Please sign in to comment.