From c9db1ce6aee157f6f181c3b1d4667e4140308345 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Mon, 17 Jan 2022 18:02:16 +0900 Subject: [PATCH] Where --- Assets/VRM/Runtime/Extensions/glTF_VRMExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/VRM/Runtime/Extensions/glTF_VRMExtensions.cs b/Assets/VRM/Runtime/Extensions/glTF_VRMExtensions.cs index a08f8d01c..73bb8e6a3 100644 --- a/Assets/VRM/Runtime/Extensions/glTF_VRMExtensions.cs +++ b/Assets/VRM/Runtime/Extensions/glTF_VRMExtensions.cs @@ -32,7 +32,7 @@ namespace VRM if (found == null) { var name = binding.RelativePath.Split('/').Last(); - found = root.GetComponentsInChildren().Where(x => x.name == name).FirstOrDefault(); + found = root.GetComponentsInChildren().FirstOrDefault(x => x.name == name); if (found == null) { Debug.LogWarning($"{binding.RelativePath} not found");