From 12981d1060f5eb5f64f5264a2d39d96097d226cf Mon Sep 17 00:00:00 2001 From: bd_ Date: Sat, 16 Mar 2024 15:57:00 +0900 Subject: [PATCH] fix: plugins with zero contributed bits are show in usage UI (#777) --- Editor/ParamsUsage/ParamsUsageEditor.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Editor/ParamsUsage/ParamsUsageEditor.cs b/Editor/ParamsUsage/ParamsUsageEditor.cs index cbb261e3..35ff3966 100644 --- a/Editor/ParamsUsage/ParamsUsageEditor.cs +++ b/Editor/ParamsUsage/ParamsUsageEditor.cs @@ -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();