From 6c929f67f032b5ff978770c00cb24497d0d711e5 Mon Sep 17 00:00:00 2001 From: ousttrue Date: Wed, 24 Jul 2024 19:42:34 +0900 Subject: [PATCH] =?UTF-8?q?attach=20=E3=81=95=E3=82=8C=E3=81=A6=E3=81=84?= =?UTF-8?q?=E3=81=AA=E3=81=84=E5=A0=B4=E5=90=88=E3=81=A7=E3=82=82=20is=20?= =?UTF-8?q?=E6=BC=94=E7=AE=97=E5=AD=90=E3=81=8C=20true=20=E3=81=AB?= =?UTF-8?q?=E3=81=AA=E3=81=A3=E3=81=A6=E5=BE=8C=E7=B6=9A=E3=81=A7=E4=BE=8B?= =?UTF-8?q?=E5=A4=96=E3=81=AB=E3=81=AA=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/UniGLTF/Editor/UniGLTF/Validation/HumanoidValidator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Assets/UniGLTF/Editor/UniGLTF/Validation/HumanoidValidator.cs b/Assets/UniGLTF/Editor/UniGLTF/Validation/HumanoidValidator.cs index 10f7c504f..f95a3b422 100644 --- a/Assets/UniGLTF/Editor/UniGLTF/Validation/HumanoidValidator.cs +++ b/Assets/UniGLTF/Editor/UniGLTF/Validation/HumanoidValidator.cs @@ -137,7 +137,7 @@ namespace UniGLTF { getBoneTransform = humanoid.GetBoneTransform; } - else if (ExportRoot.GetComponent() is Animator animator) + else if (ExportRoot.GetComponent() is Animator animator && animator != null) { getBoneTransform = animator.GetBoneTransform;