Corsair - Added VOID layout and Virtuoso PH layout

Core - Added default value to brush plugin properties
Core - Bitmap brush optimizations
This commit is contained in:
SpoinkyNL committed 2020-02-17 20:46:27 +01:00
1 parent 4b1b0248f5
commit 1d81b782da
9 files changed
+151 -18

No files matched your search

@@ -4,6 +4,8 @@ namespace Artemis.Core.Models.Profile.LayerShapes
{
public abstract class LayerShape
{
private SKPath _path;
protected LayerShape(Layer layer)
{
Layer = layer;
@@ -15,9 +17,13 @@ namespace Artemis.Core.Models.Profile.LayerShapes
public Layer Layer { get; set; }
/// <summary>
/// A path outlining the shape
/// Gets a copy of the path outlining the shape
/// </summary>
public SKPath Path { get; protected set; }
public SKPath Path
{
get => _path != null ? new SKPath(_path) : null;
protected set => _path = value;
}
public abstract void CalculateRenderProperties();
}