Implemented translations properly on top of the layer shape

This commit is contained in:
Robert committed 2020-01-16 17:20:54 +01:00
1 parent 4e9ece621f
commit da5fc75836
17 files changed
+300 -168

No files matched your search

@@ -13,11 +13,10 @@ namespace Artemis.Core.Models.Profile.LayerShapes
{
}
public override void CalculateRenderProperties(SKPoint shapePosition, SKSize shapeSize)
public override void CalculateRenderProperties()
{
// TODO: Scale the path? Not sure if desirable
RenderRectangle = GetUnscaledRectangle();
RenderPath = Layer.Path;
RenderRectangle = Layer.Path.GetRect();
}
public override void ApplyToEntity()