From a72d2119865983bb017f91f6c3bf4a4e0a9a0256 Mon Sep 17 00:00:00 2001 From: yum Date: Mon, 9 Mar 2026 20:34:08 -0700 Subject: Name resolution now only works for gameobjects with a meshrenderer or skinned mesh renderer --- Scripts/YOTSNDMFGenerator.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'Scripts') diff --git a/Scripts/YOTSNDMFGenerator.cs b/Scripts/YOTSNDMFGenerator.cs index 9af0772..6cb1e21 100644 --- a/Scripts/YOTSNDMFGenerator.cs +++ b/Scripts/YOTSNDMFGenerator.cs @@ -254,9 +254,11 @@ namespace YOTS private static void CollectPaths(Transform current, string currentPath, Dictionary> map) { foreach (Transform child in current) { string childPath = currentPath == "" ? child.name : currentPath + "/" + child.name; - if (!map.ContainsKey(child.name)) - map[child.name] = new List(); - map[child.name].Add(childPath); + if (child.GetComponent() != null || child.GetComponent() != null) { + if (!map.ContainsKey(child.name)) + map[child.name] = new List(); + map[child.name].Add(childPath); + } CollectPaths(child, childPath, map); } } -- cgit v1.2.3