mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 11:26:27 +00:00
Profiles - Fix brush properties being carried over from previous brush
This commit is contained in:
1 parent
3625d1ad11
commit
eec2419005
5 files changed
+18
-8
No files matched your search
@@ -33,11 +33,11 @@ namespace Artemis.Core.LayerBrushes
|
||||
internal set => _properties = value;
|
||||
}
|
||||
|
||||
internal void InitializeProperties(PropertyGroupEntity? propertyGroupEntity)
|
||||
internal void InitializeProperties()
|
||||
{
|
||||
Properties = new T();
|
||||
PropertyGroupDescriptionAttribute groupDescription = new() {Identifier = "Brush", Name = Descriptor.DisplayName, Description = Descriptor.Description};
|
||||
Properties.Initialize(Layer, null, groupDescription, propertyGroupEntity);
|
||||
Properties.Initialize(Layer, null, groupDescription, LayerBrushEntity.PropertyGroup);
|
||||
PropertiesInitialized = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace Artemis.Core.LayerBrushes
|
||||
|
||||
internal override void Initialize()
|
||||
{
|
||||
TryOrBreak(() => InitializeProperties(Layer.LayerEntity.LayerBrush?.PropertyGroup), "Failed to initialize");
|
||||
TryOrBreak(InitializeProperties, "Failed to initialize");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -76,7 +76,7 @@ namespace Artemis.Core.LayerBrushes
|
||||
|
||||
internal override void Initialize()
|
||||
{
|
||||
TryOrBreak(() => InitializeProperties(Layer.LayerEntity.LayerBrush?.PropertyGroup), "Failed to initialize");
|
||||
TryOrBreak(InitializeProperties, "Failed to initialize");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user