mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Core - Drop old brush entity when changing to a new brush
Core - Properly save brush entity sub-groups
This commit is contained in:
1 parent
cce8404cfa
commit
b2987b5190
2 files changed
+7
-2
No files matched your search
@@ -790,7 +790,8 @@ namespace Artemis.Core
|
||||
{
|
||||
General.BrushReference.SetCurrentValue(layerBrush != null ? new LayerBrushReference(layerBrush.Descriptor) : null, null);
|
||||
LayerBrush = layerBrush;
|
||||
|
||||
LayerEntity.LayerBrush = new LayerBrushEntity();
|
||||
|
||||
if (LayerBrush != null)
|
||||
ActivateLayerBrush();
|
||||
else
|
||||
|
||||
@@ -231,14 +231,18 @@ namespace Artemis.Core
|
||||
|
||||
internal void ApplyToEntity()
|
||||
{
|
||||
if (!PropertiesInitialized)
|
||||
if (!PropertiesInitialized || PropertyGroupEntity == null)
|
||||
return;
|
||||
|
||||
foreach (ILayerProperty layerProperty in LayerProperties)
|
||||
layerProperty.Save();
|
||||
|
||||
PropertyGroupEntity.PropertyGroups.Clear();
|
||||
foreach (LayerPropertyGroup layerPropertyGroup in LayerPropertyGroups)
|
||||
{
|
||||
layerPropertyGroup.ApplyToEntity();
|
||||
PropertyGroupEntity.PropertyGroups.Add(layerPropertyGroup.PropertyGroupEntity);
|
||||
}
|
||||
}
|
||||
|
||||
internal void Update(Timeline timeline)
|
||||
|
||||
Reference in new issue
Block a user