mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-20 09:34:42 -05:00
attach されていない場合でも is 演算子が true になって後続で例外になる
This commit is contained in:
@@ -137,7 +137,7 @@ namespace UniGLTF
|
||||
{
|
||||
getBoneTransform = humanoid.GetBoneTransform;
|
||||
}
|
||||
else if (ExportRoot.GetComponent<Animator>() is Animator animator)
|
||||
else if (ExportRoot.GetComponent<Animator>() is Animator animator && animator != null)
|
||||
{
|
||||
getBoneTransform = animator.GetBoneTransform;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user