mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-09-28 22:03:28 -05:00
human bone の index が -1 になりうる?
This commit is contained in:
@@ -87,7 +87,15 @@ namespace VRM
|
||||
var transform = animator.GetBoneTransform(key);
|
||||
if (transform != null)
|
||||
{
|
||||
VRM.humanoid.SetNodeIndex(key, nodes.IndexOf(transform));
|
||||
var nodeIndex = nodes.IndexOf(transform);
|
||||
if (nodeIndex < 0)
|
||||
{
|
||||
Debug.LogError($"ヒューマンボーンが export 対象に含まれていない?", transform);
|
||||
}
|
||||
else
|
||||
{
|
||||
VRM.humanoid.SetNodeIndex(key, nodeIndex);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user