mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-14 14:29:52 -05:00
attach されていない場合でも is 演算子が true になって後続で例外になる
This commit is contained in:
parent
f1bec3d486
commit
6c929f67f0
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user