mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Refactored the edit tool
Fixed the fill shape but it might need some rethinking
This commit is contained in:
1 parent
a494c32f0e
commit
cd1b75750e
32 files changed
+1037
-826
No files matched your search
@@ -16,7 +16,11 @@ namespace Artemis.Core.Models.Profile.LayerShapes
|
||||
public override void CalculateRenderProperties()
|
||||
{
|
||||
RenderRectangle = GetUnscaledRectangle();
|
||||
RenderPath = Layer.Path;
|
||||
|
||||
// Shape originates from the center so compensate the path for that
|
||||
var renderPath = new SKPath(Layer.Path);
|
||||
renderPath.Transform(SKMatrix.MakeTranslation(RenderRectangle.Left - Layer.Path.Bounds.Left, RenderRectangle.Top - Layer.Path.Bounds.Top));
|
||||
RenderPath = renderPath;
|
||||
}
|
||||
|
||||
public override void ApplyToEntity()
|
||||
|
||||
Reference in new issue
Block a user