Fix for some error involving gradient color

This commit is contained in:
Tercio Jose
2022-11-02 20:08:36 -03:00
parent 61e7f2ad52
commit c48d032c16
3 changed files with 14 additions and 7 deletions
+5
View File
@@ -1203,6 +1203,11 @@ end
local blue_now = ThisGradient.StartBlue + (percent * ThisGradient.OnePercentBlue)
local alpha_now = ThisGradient.StartAlpha + (percent * ThisGradient.OnePercentAlpha)
red_now = Saturate(red_now)
green_now = Saturate(green_now)
blue_now = Saturate(blue_now)
alpha_now = Saturate(alpha_now)
if (ThisGradient.ObjectType == "frame") then
ThisGradient.Object:SetBackdropColor(red_now, green_now, blue_now, alpha_now)
elseif (ThisGradient.ObjectType == "texture") then