mirror of
https://github.com/bdunderscore/modular-avatar.git
synced 2025-01-04 13:45:04 +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)
|
var orderedPlugins = ParameterInfo.ForUI.GetParametersForObject(ctx)
|
||||||
.GroupBy(p => p.Plugin)
|
.GroupBy(p => p.Plugin)
|
||||||
.Select(group => (group.Key, group.Sum(p => p.BitUsage)))
|
.Select(group => (group.Key, group.Sum(p => p.BitUsage)))
|
||||||
|
.Where((kv, index) => kv.Item2 > 0)
|
||||||
.OrderBy(group => group.Key.DisplayName)
|
.OrderBy(group => group.Key.DisplayName)
|
||||||
.ToList();
|
.ToList();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user