From c48ef9be0ee012b9154a54854ae13e019a9b4770 Mon Sep 17 00:00:00 2001 From: bd_ Date: Sun, 13 Aug 2023 21:36:50 +0900 Subject: [PATCH] feat: disregard digits in heuristic bone mapper (#393) Closes: #387 --- Packages/nadena.dev.modular-avatar/Editor/HeuristicBoneMapper.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Packages/nadena.dev.modular-avatar/Editor/HeuristicBoneMapper.cs b/Packages/nadena.dev.modular-avatar/Editor/HeuristicBoneMapper.cs index 321c931a..966df029 100644 --- a/Packages/nadena.dev.modular-avatar/Editor/HeuristicBoneMapper.cs +++ b/Packages/nadena.dev.modular-avatar/Editor/HeuristicBoneMapper.cs @@ -231,6 +231,7 @@ namespace nadena.dev.modular_avatar.core.editor .Replace("_", "") .Replace(".", "") .Replace(" ", ""); + name = Regex.Replace(name, "[0-9]", ""); return PAT_END_NUMBER.Replace(name, ""); }