Profiles - Fixed PerLayerBrush clip rendering issue on transform

Profile service - Store the active profile whenever it changes
This commit is contained in:
SpoinkyNL committed 2020-08-10 23:37:33 +02:00
1 parent fb93ad16fe
commit f21ade955d
4 files changed
+39 -10

No files matched your search

@@ -30,10 +30,13 @@ namespace Artemis.Core.Plugins.LayerBrush.Abstract
// We don't want translations on this canvas because that'll displace the LEDs, translations are applied to the points of each LED instead
Layer.ExcludeCanvasFromTranslation(canvas, true);
// Apply a translated version of the shape as the clipping mask
var shapePath = new SKPath(Layer.LayerShape.Path);
Layer.IncludePathInTranslation(shapePath, true);
canvas.ClipPath(shapePath);
if (Layer.General.ResizeMode == LayerResizeMode.Normal)
{
// Apply a translated version of the shape as the clipping mask
var shapePath = new SKPath(Layer.LayerShape.Path);
Layer.IncludePathInTranslation(shapePath, true);
canvas.ClipPath(shapePath);
}
using var pointsPath = new SKPath();
using var ledPaint = new SKPaint();