Skip to content

Commit b570ddc

Browse files
svc-reach-platform-supportEvergreen
authored andcommitted
[Port] [6000.0] [UUM-131589] Prevent subgraph node starting drag on double-click
1 parent 783a66f commit b570ddc

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,9 @@ void OnSubGraphDoubleClick(MouseDownEvent evt)
334334

335335
var path = AssetDatabase.GUIDToAssetPath(subgraphNode.subGraphGuid);
336336
ShaderGraphImporterEditor.ShowGraphEditWindow(path);
337+
338+
// Stop the double click event from starting a drag action on the node
339+
evt.StopImmediatePropagation();
337340
}
338341
}
339342

0 commit comments

Comments
 (0)