mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Profiles - Fixed PerLayerBrush clip rendering issue on transform
Profile service - Store the active profile whenever it changes
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user