mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-19 01:07:32 -05:00
Fixed null ColliderGroups
This commit is contained in:
parent
320c9fdf80
commit
eb8867f9ed
|
|
@ -147,15 +147,8 @@ namespace VRM
|
|||
stiffiness = spring.m_stiffnessForce,
|
||||
hitRadius = spring.m_hitRadius,
|
||||
colliderGroups = spring.ColliderGroups
|
||||
.Select(x =>
|
||||
{
|
||||
var index = colliders.IndexOf(x);
|
||||
if (index == -1)
|
||||
{
|
||||
throw new IndexOutOfRangeException();
|
||||
}
|
||||
return index;
|
||||
})
|
||||
.Select(x => colliders.IndexOf(x))
|
||||
.Where(x => x != -1)
|
||||
.ToArray(),
|
||||
bones = spring.RootBones.Select(x => nodes.IndexOf(x)).ToArray(),
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user