mirror of
https://github.com/Artemis-RGB/Artemis
synced 2026-11-11 19:36:28 +00:00
Layer brushes & effects - Fix custom icon paths
This commit is contained in:
1 parent
8d75d0dd8c
commit
70bf8824db
4 files changed
+12
-3
No files matched your search
@@ -41,6 +41,8 @@ namespace Artemis.Core.LayerBrushes
|
||||
if (!IsEnabled)
|
||||
throw new ArtemisPluginException(Plugin, "Can only add a layer brush descriptor when the plugin is enabled");
|
||||
|
||||
if (icon.ToLower().EndsWith(".svg"))
|
||||
icon = Plugin.ResolveRelativePath(icon);
|
||||
LayerBrushDescriptor descriptor = new(displayName, description, icon, typeof(T), this);
|
||||
_layerBrushDescriptors.Add(descriptor);
|
||||
LayerBrushStore.Add(descriptor);
|
||||
|
||||
Reference in new issue
Block a user