Basic implementation of a few editor tools

This commit is contained in:
Robert committed 2019-12-16 17:40:08 +01:00
1 parent ddce69e8f0
commit dda3cf442d
26 files changed
+634 -174

No files matched your search

+11 -7
View File
@@ -97,7 +97,8 @@ namespace Artemis.Core.Models.Profile
set
{
_layerShape = value;
_layerShape.CalculateRenderProperties();
if (Path != null)
_layerShape.CalculateRenderProperties();
}
}
@@ -146,15 +147,18 @@ namespace Artemis.Core.Models.Profile
LayerEntity.Condition.Clear();
// Brush
LayerEntity.BrushEntity = new BrushEntity
if (LayerBrush != null)
{
BrushPluginGuid = LayerBrush.Descriptor.LayerBrushProvider.PluginInfo.Guid,
BrushType = LayerBrush.GetType().Name,
Configuration = JsonConvert.SerializeObject(LayerBrush.Settings)
};
LayerEntity.BrushEntity = new BrushEntity
{
BrushPluginGuid = LayerBrush.Descriptor.LayerBrushProvider.PluginInfo.Guid,
BrushType = LayerBrush.GetType().Name,
Configuration = JsonConvert.SerializeObject(LayerBrush.Settings)
};
}
// Shape
LayerShape.ApplyToEntity();
LayerShape?.ApplyToEntity();
}
/// <summary>