Layers - Fixed blend mode not being applied

This commit is contained in:
Robert committed 2022-08-13 11:32:58 +02:00
1 parent 19d47ec9f5
commit b0c7dd4290
1 file changed
+2 -5
+2 -5
View File
@@ -635,9 +635,6 @@ namespace Artemis.Core
} }
canvas.ClipPath(renderPath); canvas.ClipPath(renderPath);
// Restore the blend mode before doing the actual render
layerPaint.BlendMode = SKBlendMode.SrcOver;
LayerBrush.InternalRender(canvas, bounds, layerPaint); LayerBrush.InternalRender(canvas, bounds, layerPaint);
foreach (BaseLayerEffect baseLayerEffect in LayerEffects) foreach (BaseLayerEffect baseLayerEffect in LayerEffects)
@@ -790,10 +787,10 @@ namespace Artemis.Core
public void ChangeLayerBrush(BaseLayerBrush? layerBrush) public void ChangeLayerBrush(BaseLayerBrush? layerBrush)
{ {
BaseLayerBrush? oldLayerBrush = LayerBrush; BaseLayerBrush? oldLayerBrush = LayerBrush;
General.BrushReference.SetCurrentValue(layerBrush != null ? new LayerBrushReference(layerBrush.Descriptor) : null, null); General.BrushReference.SetCurrentValue(layerBrush != null ? new LayerBrushReference(layerBrush.Descriptor) : null, null);
LayerBrush = layerBrush; LayerBrush = layerBrush;
oldLayerBrush?.InternalDisable(); oldLayerBrush?.InternalDisable();
if (LayerBrush != null) if (LayerBrush != null)