Cleaned up ProfileService render condition

This commit is contained in:
Diogo Trindade committed 2022-11-27 20:04:04 +00:00
1 parent b39dd14526
commit 5877e4dd20
2 files changed
+3 -2

No files matched your search

+1 -1
View File
@@ -125,7 +125,7 @@ public sealed class Profile : ProfileElement
profileScript.OnProfileRendering(canvas, canvas.LocalClipBounds);
using var opacityPaint = new SKPaint();
if (Configuration.FadeInAndOut && Opacity != 1)
if (Configuration.FadeInAndOut && Opacity < 1)
opacityPaint.Color = new SKColor(0, 0, 0, (byte)(255d * Easings.CubicEaseInOut(Opacity)));
canvas.SaveLayer(opacityPaint);