Skip to content

Commit

Permalink
Merge pull request #79 from lackofbindings/gradient-drawer-fixed
Browse files Browse the repository at this point in the history
Fix Gradient() function ignoring gradient blend mode
  • Loading branch information
orels1 authored Jul 31, 2024
2 parents 11684b8 + 19cb115 commit fdfe03e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public bool OnGUI(MaterialEditor editor, MaterialProperty[] properties, Material
if (hasSavedGradient)
{
oldGradCopy.SetKeys(savedGradient.colorKeys, savedGradient.alphaKeys);
oldGradCopy.mode = savedGradient.mode;
}
else
{
Expand Down

0 comments on commit fdfe03e

Please sign in to comment.