Skip to content
This repository was archived by the owner on Apr 29, 2021. It is now read-only.

Commit 2956a50

Browse files
authored
Merge pull request #290 from UnityTech/yczhang1.5.4
Fix typo.
2 parents 42917e4 + de50ef1 commit 2956a50

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Runtime/painting/gradient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ static Color _sample(List<Color> colors, List<float> stops, float t) {
2727
return colors.first();
2828
}
2929

30-
if (t < stops.last()) {
30+
if (t > stops.last()) {
3131
return colors.last();
3232
}
3333

0 commit comments

Comments
 (0)