mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-12 11:56:30 +00:00
Fix shape positioning on layer LED selection change
This commit is contained in:
1 parent
cd1b75750e
commit
f57aca3475
14 files changed
+89
-50
No files matched your search
@@ -15,14 +15,15 @@ namespace Artemis.Core.Models.Profile.LayerShapes
|
||||
|
||||
public override void CalculateRenderProperties()
|
||||
{
|
||||
RenderRectangle = GetUnscaledRectangle();
|
||||
|
||||
var unscaled = GetUnscaledRectangle();
|
||||
RenderRectangle = SKRect.Create(0,0 , unscaled.Width, unscaled.Height);
|
||||
|
||||
var path = new SKPath();
|
||||
path.AddOval(RenderRectangle);
|
||||
RenderPath = path;
|
||||
}
|
||||
|
||||
public override void ApplyToEntity()
|
||||
internal override void ApplyToEntity()
|
||||
{
|
||||
base.ApplyToEntity();
|
||||
Layer.LayerEntity.ShapeEntity.Type = ShapeEntityType.Ellipse;
|
||||
|
||||
Reference in new issue
Block a user