From 62d217993af60a20d4913868a0258bcf715865f7 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 2 Feb 2022 19:55:28 +0900 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E3=81=98=E5=AF=BE=E8=B1=A1=E3=81=AB?= =?UTF-8?q?=E5=AF=BE=E3=81=99=E3=82=8B=E8=A8=AD=E5=AE=9A=E3=81=8C=E8=A4=87?= =?UTF-8?q?=E6=95=B0=E3=81=82=E3=82=8B=E5=A0=B4=E5=90=88=E3=81=AB=E5=85=88?= =?UTF-8?q?=E9=A0=AD=E3=81=AE=E3=82=82=E3=81=AE=E3=82=92=E6=8E=A1=E7=94=A8?= =?UTF-8?q?=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Components/VRM10Object/VRM10ObjectFirstPerson.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Assets/VRM10/Runtime/Components/VRM10Object/VRM10ObjectFirstPerson.cs b/Assets/VRM10/Runtime/Components/VRM10Object/VRM10ObjectFirstPerson.cs index fdd71522c..ad7bcc8ab 100644 --- a/Assets/VRM10/Runtime/Components/VRM10Object/VRM10ObjectFirstPerson.cs +++ b/Assets/VRM10/Runtime/Components/VRM10Object/VRM10ObjectFirstPerson.cs @@ -155,8 +155,17 @@ namespace UniVRM10 var runtime = go.GetComponent(); var firstPersonBone = go.GetComponent().GetBoneTransform(HumanBodyBones.Head); + + var used = new HashSet(); foreach (var x in Renderers) { + if (!used.Add(x.Renderer)) + { + // 同じ対象が複数回現れた + Debug.LogWarning($"VRM10ObjectFirstPerson.SetupAsync: duplicated {x.Renderer}"); + continue; + } + if (isSelf) { await SetupSelfRendererAsync(go, runtime, firstPersonBone, x, layer, awaitCaller);