Skip to content

Commit 0c1b070

Browse files
committed
feat: fix error in edge color
1 parent f1f0653 commit 0c1b070

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Editor/Scripts/Utility/GraphTool.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public static void SetNodeStyle(this GraphViewNode node, Color nodeColor,
4848

4949
public static Color GetPortColor(float weight)
5050
{
51-
var alpha = (weight + ColorAlphaFactor) / (1 + weight);
51+
var alpha = (weight + ColorAlphaFactor) / (1 + ColorAlphaFactor);
5252
return new Color(1, 1, 1, alpha);
5353
}
5454

0 commit comments

Comments
 (0)