Layer brushes - Render now always originates from 0,0

RGB.NET brushes - GetBrush is no called after properties are initialized
Profile editor - Fixed inputs not responding to updates from the visualization tools when keyframes are disabled
This commit is contained in:
SpoinkyNL committed 2020-06-03 19:22:08 +02:00
1 parent 72485e5d71
commit 97c85e238c
4 files changed
+16 -10

No files matched your search

@@ -26,6 +26,11 @@ namespace Artemis.Core.Plugins.LayerBrush
internal override void InternalRender(SKCanvas canvas, SKImageInfo canvasInfo, SKPath path, SKPaint paint)
{
// Move the canvas to the top-left of the render path
canvas.Translate(path.Bounds.Left, path.Bounds.Top);
// Pass the render path to the layer brush positioned at 0,0
path.Transform(SKMatrix.MakeTranslation(path.Bounds.Left * -1, path.Bounds.Top * -1));
Render(canvas, canvasInfo, path, paint);
}
@@ -17,7 +17,6 @@ namespace Artemis.Core.Plugins.LayerBrush
Layer = layer;
Layer.RenderPropertiesUpdated += LayerOnRenderPropertiesUpdated;
UpdateLedGroup();
}
/// <summary>
@@ -59,6 +58,7 @@ namespace Artemis.Core.Plugins.LayerBrush
internal override void Initialize(ILayerService layerService)
{
InitializeProperties(layerService);
UpdateLedGroup();
}
// Not used in this brush type