1
0
mirror of https://github.com/Artemis-RGB/Artemis synced 2025-12-13 05:48:35 +00:00

Layers - Fixed blend mode not being applied

This commit is contained in:
Robert 2022-08-13 11:32:58 +02:00
parent 19d47ec9f5
commit b0c7dd4290

View File

@ -635,9 +635,6 @@ namespace Artemis.Core
}
canvas.ClipPath(renderPath);
// Restore the blend mode before doing the actual render
layerPaint.BlendMode = SKBlendMode.SrcOver;
LayerBrush.InternalRender(canvas, bounds, layerPaint);
foreach (BaseLayerEffect baseLayerEffect in LayerEffects)
@ -790,10 +787,10 @@ namespace Artemis.Core
public void ChangeLayerBrush(BaseLayerBrush? layerBrush)
{
BaseLayerBrush? oldLayerBrush = LayerBrush;
General.BrushReference.SetCurrentValue(layerBrush != null ? new LayerBrushReference(layerBrush.Descriptor) : null, null);
LayerBrush = layerBrush;
oldLayerBrush?.InternalDisable();
if (LayerBrush != null)