mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2024-12-29 18:55:06 +08:00
fix: plugins with zero contributed bits are show in usage UI (#777)
This commit is contained in:
parent
2c69bb2b76
commit
12981d1060
@ -110,6 +110,7 @@ namespace nadena.dev.modular_avatar.core.editor
|
||||
var orderedPlugins = ParameterInfo.ForUI.GetParametersForObject(ctx)
|
||||
.GroupBy(p => p.Plugin)
|
||||
.Select(group => (group.Key, group.Sum(p => p.BitUsage)))
|
||||
.Where((kv, index) => kv.Item2 > 0)
|
||||
.OrderBy(group => group.Key.DisplayName)
|
||||
.ToList();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user