mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:02:55 +08:00
Fix SkinComponentToolbox
attempting to create instances of abstract classes
This commit is contained in:
parent
af6d53ad64
commit
806a16d8f6
@ -51,7 +51,7 @@ namespace osu.Game.Skinning.Editor
|
||||
fill.Clear();
|
||||
|
||||
var skinnableTypes = typeof(OsuGame).Assembly.GetTypes()
|
||||
.Where(t => !t.IsInterface)
|
||||
.Where(t => !t.IsInterface && !t.IsAbstract)
|
||||
.Where(t => typeof(ISkinnableDrawable).IsAssignableFrom(t))
|
||||
.OrderBy(t => t.Name)
|
||||
.ToArray();
|
||||
|
Loading…
Reference in New Issue
Block a user