Skip to content

Commit 05a01e1

Browse files
Esmeralda SalamoneEvergreen
authored andcommitted
[ShaderGraph][6000.0][Backport] Fix issue where elements were not getting selected after duplication
1 parent b29602f commit 05a01e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Packages/com.unity.shadergraph/Editor/Drawing/Views/GraphEditorView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,7 @@ public void HandleGraphChanges(bool wasUndoRedoPerformed)
875875

876876
foreach (var node in m_Graph.pastedNodes)
877877
{
878-
if (lookupTable.TryGetValue(node.objectId, out var nodeView) && nodeView is IShaderNodeView)
878+
if (lookupTable.TryGetValue(node, out var nodeView) && nodeView is IShaderNodeView)
879879
m_GraphView.AddToSelection((Node)nodeView);
880880
}
881881

0 commit comments

Comments
 (0)