Skip to content

Commit 96e309e

Browse files
committed
Merge branch 'Gradient2_gradient' into Unity6000_api_support
2 parents d2ed805 + 5db2ea6 commit 96e309e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Runtime/Scripts/Effects/Gradient2.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -475,7 +475,7 @@ List<float> FindStops(float zoomOffset, Rect bounds, List<float> stops)
475475
var startBoundary = zoomOffset - offset;
476476
var endBoundary = (1 - zoomOffset) - offset;
477477

478-
if (_colorKeys == null) _colorKeys = EffectGradient.colorKeys;
478+
_colorKeys = EffectGradient.colorKeys;
479479

480480
foreach (var color in _colorKeys)
481481
{
@@ -485,7 +485,7 @@ List<float> FindStops(float zoomOffset, Rect bounds, List<float> stops)
485485
stops.Add((color.time - startBoundary) * Zoom);
486486
}
487487

488-
if (_alphaKeys == null) _alphaKeys = _effectGradient.alphaKeys;
488+
_alphaKeys = _effectGradient.alphaKeys;
489489

490490
foreach (var alpha in _alphaKeys)
491491
{

0 commit comments

Comments
 (0)